mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-26 20:00:02 +00:00
host/mesh: fix bt_mesh_proxy_relay
client->cli can be NULL - and this should be checked, not connection handle.
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
afd677efd2
commit
a17ed2a1da
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user