This is an automated email from the ASF dual-hosted git repository.
kopyscinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new a17ed2a host/mesh: fix bt_mesh_proxy_relay
a17ed2a is described below
commit a17ed2a1da2f5850bb33ac65b18334c8104ac5bc
Author: Krzysztof Kopyściński <[email protected]>
AuthorDate: Wed Dec 1 14:56:24 2021 +0100
host/mesh: fix bt_mesh_proxy_relay
client->cli can be NULL - and this should be checked, not connection
handle.
---
nimble/host/mesh/src/proxy_srv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/mesh/src/proxy_srv.c b/nimble/host/mesh/src/proxy_srv.c
index 3507d0a..dcbabfa 100644
--- a/nimble/host/mesh/src/proxy_srv.c
+++ b/nimble/host/mesh/src/proxy_srv.c
@@ -758,7 +758,7 @@ bool bt_mesh_proxy_relay(struct os_mbuf *buf, uint16_t dst)
struct bt_mesh_proxy_client *client = &clients[i];
struct os_mbuf *msg;
- if (client->cli->conn_handle == BLE_HS_CONN_HANDLE_NONE) {
+ if (!client->cli) {
continue;
}