bluetooth: Fix invalid access of conn->state
@@ -1049,7 +1049,7 @@ int bt_gatt_read_multiple(FAR struct bt_conn_s *conn, FAR const uint16_t *handle
FAR struct bt_buf_s *buf;
uint8_t i;
- if (!conn && conn->state != BT_CONN_CONNECTED) {
+ if (!conn || conn->state != BT_CONN_CONNECTED) {
return -ENOTCONN;
}
