===== net/bluetooth/hci_event.c 1.13 vs edited ===== --- 1.13/net/bluetooth/hci_event.c 2004-05-31 22:15:12 +02:00 +++ edited/net/bluetooth/hci_event.c 2004-06-10 20:48:55 +02:00 @@ -358,7 +358,7 @@ status, batostr(&cp->bdaddr), conn); if (status) { - if (conn) { + if (conn && conn->state == BT_CONNECT) { conn->state = BT_CLOSED; hci_proto_connect_cfm(conn, status); hci_conn_del(conn);