From 274dad91fed25b1bab9f57b24aef690ed9dcfec5 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 4 Jul 2016 14:21:01 +0200 Subject: [PATCH] hci: fix null dereference in hci_send_cmd_packet when hci connection when table is full (II) --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index aae822c09..1b817f37f 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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