mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-17 07:20:01 +00:00
mesh: Fix coverity warning with unchecked error return
This fixes Zephyr's Coverity CID 182769. X-Original-Commit: 584c807f5e25a9c325d90ad6643628198785128d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user