summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-05-04 01:08:15 +0000
committerrwatson <rwatson@FreeBSD.org>2004-05-04 01:08:15 +0000
commite15e5d49773ef804bc0621274b3ea38a233fe00f (patch)
treeaceaaa40b567ccf3cb79e813a1aa58cb98a7d67a /sys/netinet
parent2f2ce5b406a2d1c463e67ddf843173792248931b (diff)
downloadFreeBSD-src-e15e5d49773ef804bc0621274b3ea38a233fe00f.zip
FreeBSD-src-e15e5d49773ef804bc0621274b3ea38a233fe00f.tar.gz
Assert inpcb lock in udp_append().
Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index a6bdb1a..8680491 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -449,6 +449,8 @@ udp_append(last, ip, n, off)
struct sockaddr *append_sa;
struct mbuf *opts = 0;
+ INP_LOCK_ASSERT(last);
+
#if defined(IPSEC) || defined(FAST_IPSEC)
/* check AH/ESP integrity. */
if (ipsec4_in_reject(n, last)) {
OpenPOWER on IntegriCloud