From 703c021133e3e7e158d79c736333fa53c57f1628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Tue, 20 Feb 2018 12:31:32 +0100 Subject: [PATCH] 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 a54cedbd7..34ea6b82a 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; }