diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-04-12 03:34:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-04-12 03:34:22 +0000 |
commit | de19fa170105efedc0a0218b0511595eb73cc209 (patch) | |
tree | cf57047c73af8d78044fa45609346e416a7b0f66 | |
parent | 63a6c29297af6f89fad8cb494eb6c59c3e1b155e (diff) | |
download | FreeBSD-src-de19fa170105efedc0a0218b0511595eb73cc209.zip FreeBSD-src-de19fa170105efedc0a0218b0511595eb73cc209.tar.gz |
Assert the inpcb lock in udp6_output(), as we dereference various
fields.
MFC after: 3 months
-rw-r--r-- | sys/netinet6/udp6_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/udp6_output.c b/sys/netinet6/udp6_output.c index 0cd4cde..0898ea0 100644 --- a/sys/netinet6/udp6_output.c +++ b/sys/netinet6/udp6_output.c @@ -140,6 +140,8 @@ udp6_output(in6p, m, addr6, control, td) int flags; struct sockaddr_in6 tmp; + INP_LOCK_ASSERT(in6p); + priv = 0; if (td && !suser(td)) priv = 1; |