mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix a use-after-free in an error case.
PR: 255872 Submitted by: lylgood Differential Revision: https://reviews.freebsd.org/D30454
This commit is contained in:
parent
399bad7b9a
commit
14803ec8d1
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue