Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2437789ybh; Mon, 5 Aug 2019 00:57:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdYSf10YH0WTZLoKHfNJefjw1kfSfcW8TH6E2YvR66o81lxu71VkXfjcAEk7lS6RUNZh1x X-Received: by 2002:a63:a66:: with SMTP id z38mr40672529pgk.247.1564991825809; Mon, 05 Aug 2019 00:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564991825; cv=none; d=google.com; s=arc-20160816; b=LYmw9QuJD7TUX2xSPViG8Mpi0vbFPJnwCQhdGAQE0975gWl9B5eMa4tmKPrGbpGcwp 0fyzH++Wi4CAo36IvwDA276nMYIiNIufjfxA57Ttjkv1h1k45fKbbpJSXz9LJT798S2G 5fIxufGi2mo4x2Gn2Psd0y3zjuaW9xXlgtgd9AmN8gS9PFKlia8ZcKcgHUWF5ya1uZvm oi3RSfZXyKtzJzJNUg6EQtu09TTBbfQgnB8tfTCwVFvnVjhR878yJ2WJRt8MbRsdI0l7 zNLgJOKuAHEN+rDziRQgPrxregO6gyhcOfKC2g0OUhM1aDMvEr7fwx1qewF/ds8Qpkpt m1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=5JUiXgTGpVbO60qhcPzO7yJeZwIi/gvrMNbL7/8cKQY=; b=iuJ7GTEDz22lDBQZ4oY/kzi3IYzqRfnVa7EwH5v4PjMJxB/BnPrUJXOB5bagucu8Az FZT6/F5+5A04iap8y4dieWyY4ywJviu0HIaQZfzZu5Uq271kXdjI2qyixc7jvlgOXDz1 zSAK+yhykaxvCODtPYx+xf/5bYYBFz+pBMwFVR6ZdBfA+PtE1zChn5YEJDCRNuWfi1gr aBOwNjgrfM4XLcUxj9TokRbte0mqmcM1jyZ5yid8dXF6dKGUyoSnBK3TdS1gsDOVz9UL zElPWNEmoz6akGKCeNbP0a/YEfXMzEO3WlITHmelxgq5+YU0YusdGuLhUG7zNj8iZyAi JABg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=exLFjaut; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si12177251pja.67.2019.08.05.00.56.38; Mon, 05 Aug 2019 00:57:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=exLFjaut; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbfHEHzH (ORCPT + 99 others); Mon, 5 Aug 2019 03:55:07 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:36628 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbfHEHzH (ORCPT ); Mon, 5 Aug 2019 03:55:07 -0400 Received: by mail-lf1-f52.google.com with SMTP id j17so3133806lfp.3 for ; Mon, 05 Aug 2019 00:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=5JUiXgTGpVbO60qhcPzO7yJeZwIi/gvrMNbL7/8cKQY=; b=exLFjaut0V+HBOaETOrm9fo52lXdqoMQ3QIrghun7GcttKV+lMXwiE4Sxd8+T2hKP7 T5j8f/aIYesZp47b+B118f7hyzjVdEZWpWTbwwe9h4CgpQejV5+/pQpnI31NVlmgP6bw /W4yM9iEt663wc6bFStLNaJklsgME4SXEPlhADZzwfy/XATduX0VTKgbrzk5EgER8zjS 0HQET+btxkHpM0tDjpPettErhcieB7vPLv+e7yVM5qPGHfzkvaPQhDyd8d0L+zAyt2iL tZNaBzQzYIMF8J6BLJspkAnB+zR11SjsHA7SNNyc54aAABLK6fjhtVh9WfaldA0jRFhw bAlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=5JUiXgTGpVbO60qhcPzO7yJeZwIi/gvrMNbL7/8cKQY=; b=FWjrbbYkoC/eamsiCaPTuEnuQfna1d3z7g/Cytvnq7yOSJlK0XvUwF+KLbIsySH615 qbqXU5Y2/PWRItggfcKqEB+4zEmd1s7TjAQV6xBsJFDL9QbbWQQ7q/hERp2JlbaASU3E USX4mNyIezPuo/jo6v1O7VlqxYPPdniePW4vLpFeqfIqIfixlorseehepqWzBTE/z9k1 5husm0izEDDmr6/H6YNfuuDQJCl5ndlrqijvbJuuAnGGHRewp4cJZaRQ2LrOatdM3m5l 1hgQcONAUylD/Kchqd/sTBDobGo4ubs9AjNBvW5AF/QZxKZ/Wuw+U/MK3yKpabIr/oQP VVpA== X-Gm-Message-State: APjAAAWf3wM58eAmRKwMzYgvk6A9YtuNbJAZ4qCm/AqHpV4XItO9OiDj uqw/4xxYAFdpTTfkOoXeEopHdidzm8I= X-Received: by 2002:a19:4c57:: with SMTP id z84mr2602656lfa.87.1564991704826; Mon, 05 Aug 2019 00:55:04 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id q17sm1661313lfb.26.2019.08.05.00.55.03 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 00:55:03 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] mesh: Fix storing network retransmission in config Date: Mon, 5 Aug 2019 09:54:58 +0200 Message-Id: <20190805075458.15694-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- 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.19.1