From e4cec5a943233f4369f78ca016c2b3a4dbf0fd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= Date: Mon, 5 Aug 2019 09:54:58 +0200 Subject: [PATCH] mesh: Fix storing network retransmission in config --- mesh/mesh-config-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.3