diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-03-07 16:59:41 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-03-07 16:59:41 +0000 |
commit | 4e2171b30f78448da28f5c9633caacc258bb2532 (patch) | |
tree | ab9c6d185b73be3ef35d8f8fc9adc0ec4f6edee0 /sys/netinet6/in6_pcb.c | |
parent | 4c94160c23a324643ab96b361e50479017c90786 (diff) |
When the inpcb queue and hash lists are traversed or modified we
need netlock. Remove the obsolete splnet.
OK mpi@
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 82c6173f28f..603ec2803ca 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.96 2016/08/04 20:46:24 vgross Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.97 2017/03/07 16:59:40 bluhm Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -334,6 +334,8 @@ in6_pcbnotify(struct inpcbtable *head, struct sockaddr_in6 *dst, int errno, nmatch = 0; u_int32_t flowinfo; + NET_ASSERT_LOCKED(); + if ((unsigned)cmd >= PRC_NCMDS) return (0); |