diff options
| author | Jeffrey Hsu <hsu@FreeBSD.org> | 2002-06-21 22:52:48 +0000 |
|---|---|---|
| committer | Jeffrey Hsu <hsu@FreeBSD.org> | 2002-06-21 22:52:48 +0000 |
| commit | 2d40081d1fc1a32761179111c0e3787d45ac5706 (patch) | |
| tree | 75df02a3f5530d21077e18189da1ef40a5851fb1 /sys/netinet/tcp_timewait.c | |
| parent | d89286ce68ebc005797b820f682b18591c89c53c (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
| -rw-r--r-- | sys/netinet/tcp_timewait.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 5b1e8340b494..f7800d2adc28 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -1057,7 +1057,7 @@ tcp_ctlinput(cmd, sa, vip) s = splnet(); th = (struct tcphdr *)((caddr_t)ip + (IP_VHL_HL(ip->ip_vhl) << 2)); - INP_INFO_RLOCK(&tcbinfo); + INP_INFO_WLOCK(&tcbinfo); inp = in_pcblookup_hash(&tcbinfo, faddr, th->th_dport, ip->ip_src, th->th_sport, 0, NULL); if (inp != NULL) { @@ -1083,7 +1083,7 @@ tcp_ctlinput(cmd, sa, vip) #endif syncache_unreach(&inc, th); } - INP_INFO_RUNLOCK(&tcbinfo); + INP_INFO_WUNLOCK(&tcbinfo); splx(s); } else in_pcbnotifyall(&tcbinfo, faddr, inetctlerrmap[cmd], notify); |
