diff options
author | 2015-07-10 22:07:48 +0000 | |
---|---|---|
committer | 2015-07-10 22:07:48 +0000 | |
commit | 091a6000f75d523efb46c0d059ee36a552b56482 (patch) | |
tree | 7157d2891e53afae4a4c18c64a7f5a48427384a3 /sys/netinet/tcp_input.c | |
parent | usbd_{endpoint,interface}_count() are no longer used and die. (diff) | |
download | wireguard-openbsd-091a6000f75d523efb46c0d059ee36a552b56482.tar.xz wireguard-openbsd-091a6000f75d523efb46c0d059ee36a552b56482.zip |
Make KASSERT in tcp_input() less strict, tcpcb may be NULL.
OK deraadt@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index bd51a2814de..5ad36b58b7f 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.294 2015/07/09 05:45:25 mpi Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.295 2015/07/10 22:07:48 bluhm Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -638,7 +638,7 @@ findpcb: } } KASSERT(sotoinpcb(inp->inp_socket) == inp); - KASSERT(intotcpcb(inp)->t_inpcb == inp); + KASSERT(intotcpcb(inp) == NULL || intotcpcb(inp)->t_inpcb == inp); /* Check the minimum TTL for socket. */ if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl) |