mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124464
@ -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 New Issue
Block a user