Ble: fix null-ptr dereference in bt_change_profile (#3110)
This commit is contained in:
parent
a6bb9698ef
commit
c924693a84
@ -359,13 +359,13 @@ static void bt_change_profile(Bt* bt, BtMessage* message) {
|
||||
*message->result = false;
|
||||
}
|
||||
}
|
||||
api_lock_unlock(message->lock);
|
||||
if(message->lock) api_lock_unlock(message->lock);
|
||||
}
|
||||
|
||||
static void bt_close_connection(Bt* bt, BtMessage* message) {
|
||||
bt_close_rpc_connection(bt);
|
||||
furi_hal_bt_stop_advertising();
|
||||
api_lock_unlock(message->lock);
|
||||
if(message->lock) api_lock_unlock(message->lock);
|
||||
}
|
||||
|
||||
int32_t bt_srv(void* p) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user