mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
do not deref freed pointer
Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net> Reviewed by: itojun
This commit is contained in:
parent
fef7cebe7b
commit
548c676b32
1 changed files with 2 additions and 2 deletions
|
|
@ -669,11 +669,11 @@ in_pcbdisconnect(inp)
|
|||
inp->inp_faddr.s_addr = INADDR_ANY;
|
||||
inp->inp_fport = 0;
|
||||
in_pcbrehash(inp);
|
||||
if (inp->inp_socket->so_state & SS_NOFDREF)
|
||||
in_pcbdetach(inp);
|
||||
#ifdef IPSEC
|
||||
ipsec_pcbdisconn(inp->inp_sp);
|
||||
#endif
|
||||
if (inp->inp_socket->so_state & SS_NOFDREF)
|
||||
in_pcbdetach(inp);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue