diff options
author | ume <ume@FreeBSD.org> | 2004-01-13 09:51:47 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-01-13 09:51:47 +0000 |
commit | 703de5ccfdf1170d26ab1e44d98114be2b1b4d91 (patch) | |
tree | 831e9f64e00f87cd145ea0a7d1096ea15b6320a7 /sys/netinet/in_pcb.c | |
parent | 7a17945656dacf9dea3bbe3cd2ec7df035ceaea4 (diff) | |
download | FreeBSD-src-703de5ccfdf1170d26ab1e44d98114be2b1b4d91.zip FreeBSD-src-703de5ccfdf1170d26ab1e44d98114be2b1b4d91.tar.gz |
do not deref freed pointer
Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
Reviewed by: itojun
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 38b7b28..260affe 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -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 |