aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/bluetooth/hci/ng_hci_evnt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
index 9e299d12fd1e..64ab4f0b36b9 100644
--- a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
+++ b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
@@ -528,6 +528,7 @@ static int le_connection_complete(ng_hci_unit_p unit, struct mbuf *event)
if (error != 0) {
ng_hci_con_untimeout(con);
ng_hci_free_con(con);
+ goto out;
}
} else if ((error = ng_hci_con_untimeout(con)) != 0)