From 2f2ce5b406a2d1c463e67ddf843173792248931b Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 4 May 2004 00:10:16 +0000 Subject: Assert the inpcb lock on 'last' in udp_append(), since it's always called with it, and also requires it. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research --- sys/netinet/raw_ip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 6668059..1953fd8 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -142,6 +142,8 @@ raw_append(struct inpcb *last, struct ip *ip, struct mbuf *n) { int policyfail = 0; + INP_LOCK_ASSERT(last); + #if defined(IPSEC) || defined(FAST_IPSEC) /* check AH/ESP integrity. */ if (ipsec4_in_reject(n, last)) { -- cgit v1.1