summaryrefslogtreecommitdiff
path: root/mesh/mesh-config-json.c
diff options
context:
space:
mode:
authorMichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>2019-08-05 09:54:58 +0200
committerBrian Gix <bgi1@bgi1-mobl2.amr.corp.intel.com>2019-08-06 12:49:10 -0400
commite4cec5a943233f4369f78ca016c2b3a4dbf0fd8e (patch)
tree308532494405c9974678e5aa9d4d33915c8bc0c9 /mesh/mesh-config-json.c
parent37cf5ad50ec9eb77496bd080b8c5bb2a79edc30e (diff)
downloadbluez-e4cec5a943233f4369f78ca016c2b3a4dbf0fd8e.tar.gz
mesh: Fix storing network retransmission in config
Diffstat (limited to 'mesh/mesh-config-json.c')
-rw-r--r--mesh/mesh-config-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 177aaac7b..d49f5226a 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1553,7 +1553,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))