diff options
author | andre <andre@FreeBSD.org> | 2007-03-28 12:58:13 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-03-28 12:58:13 +0000 |
commit | b1c6fabadd4d3f1741ad3d643e6bf40609a6a0ab (patch) | |
tree | 30950037440071f251f73641b4c93e60c10b1b47 | |
parent | 41ebb7b07cd7d4973b77c820410455a593cab103 (diff) | |
download | FreeBSD-src-b1c6fabadd4d3f1741ad3d643e6bf40609a6a0ab.zip FreeBSD-src-b1c6fabadd4d3f1741ad3d643e6bf40609a6a0ab.tar.gz |
When blackholing do a 'dropunlock' in the new world order to prevent the
INP_INFO_LOCK from leaking.
Reported by: ache
Found by: rwatson
-rw-r--r-- | sys/netinet/tcp_input.c | 2 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 00cc818..e37b656 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -726,7 +726,7 @@ findpcb: */ if ((blackhole == 1 && (thflags & TH_SYN)) || blackhole == 2) - goto drop; + goto dropunlock; rstreason = BANDLIM_RST_CLOSEDPORT; goto dropwithreset; diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 00cc818..e37b656 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -726,7 +726,7 @@ findpcb: */ if ((blackhole == 1 && (thflags & TH_SYN)) || blackhole == 2) - goto drop; + goto dropunlock; rstreason = BANDLIM_RST_CLOSEDPORT; goto dropwithreset; |