hci: fix null dereference in hci_send_cmd_packet when hci connection when table is full (II)

This commit is contained in:
Matthias Ringwald 2016-07-04 14:21:01 +02:00
parent 7224be7e77
commit 274dad91fe

View File

@ -2825,7 +2825,7 @@ int hci_send_cmd_packet(uint8_t *packet, int size){
// if connection active exists
case OPEN:
// and OPEN, emit connection complete command, don't send to controller
hci_emit_connection_complete(addr, 0, 0);
hci_emit_connection_complete(addr, conn->con_handle, 0);
return 0;
case SEND_CREATE_CONNECTION:
// connection created by hci, e.g. dedicated bonding