You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/03/12 13:37:50 UTC
[mynewt-nimble] 16/32: mesh: Fix coverity warning with unchecked
error return
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch new-master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 703c021133e3e7e158d79c736333fa53c57f1628
Author: MichaĆ Narajowski <mi...@codecoup.pl>
AuthorDate: Tue Feb 20 12:31:32 2018 +0100
mesh: Fix coverity warning with unchecked error return
This fixes Zephyr's Coverity CID 182769.
X-Original-Commit: 584c807f5e25a9c325d90ad6643628198785128d
---
nimble/host/mesh/src/beacon.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/nimble/host/mesh/src/beacon.c b/nimble/host/mesh/src/beacon.c
index a54cedb..34ea6b8 100644
--- a/nimble/host/mesh/src/beacon.c
+++ b/nimble/host/mesh/src/beacon.c
@@ -169,9 +169,8 @@ static int unprovisioned_beacon_send(void)
net_buf_add_u8(buf, BEACON_TYPE_UNPROVISIONED);
net_buf_add_mem(buf, prov->uuid, 16);
- if (prov->uri) {
+ if (prov->uri && bt_mesh_s1(prov->uri, uri_hash) == 0) {
oob_info = prov->oob_info | BT_MESH_PROV_OOB_URI;
- bt_mesh_s1(prov->uri, uri_hash);
} else {
oob_info = prov->oob_info;
}
--
To stop receiving notification emails like this one, please contact
andk@apache.org.