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:
Krzysztof Kopyściński
2021-12-02 07:14:23 +01:00
committed by Krzysztof Kopyściński
parent afd677efd2
commit a17ed2a1da
+1 -1
View File
@@ -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;
}