diff options
| author | 2017-11-20 10:35:24 +0000 | |
|---|---|---|
| committer | 2017-11-20 10:35:24 +0000 | |
| commit | 94334c667cb14a4cfacff059c4e2da21206ed658 (patch) | |
| tree | f8289e1c9810f75b425caae8fcd133de0f51a6f9 /sys/netinet/tcp_input.c | |
| parent | Remove duplicated code working around the fact that ifpromisc() required (diff) | |
| download | wireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.tar.xz wireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.zip | |
Sprinkle some NET_ASSERT_LOCKED(), const and co to prepare running
pr_input handlers without KERNEL_LOCK().
ok visa@
Diffstat (limited to 'sys/netinet/tcp_input.c')
| -rw-r--r-- | sys/netinet/tcp_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 1688254dbe6..bf93c0899da 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.351 2017/11/08 20:19:58 bluhm Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.352 2017/11/20 10:35:24 mpi Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -579,6 +579,7 @@ findpcb: } KASSERT(sotoinpcb(inp->inp_socket) == inp); KASSERT(intotcpcb(inp) == NULL || intotcpcb(inp)->t_inpcb == inp); + soassertlocked(inp->inp_socket); /* Check the minimum TTL for socket. */ switch (af) { |
