mesh: Fix storing network retransmission in config
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Mon, 5 Aug 2019 07:54:58 +0000 (09:54 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 16:26:59 +0000 (21:56 +0530)
Change-Id: I20a87d75ccbbefecfa5030a712cd949296f9227e
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/mesh-config-json.c

index 0c16aa5..98f16f6 100644 (file)
@@ -1555,7 +1555,7 @@ bool mesh_config_write_net_transmit(struct mesh_config *cfg, uint8_t cnt,
        jnode = cfg->jnode;
 
        jretransmit = json_object_new_object();
-       if (jretransmit)
+       if (!jretransmit)
                return false;
 
        if (!write_int(jretransmit, "count", cnt))