summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-04-03 09:01:17 +0000
committerrwatson <rwatson@FreeBSD.org>2006-04-03 09:01:17 +0000
commitc8b4c281faf741755004c5c7a66d1793de1b9a26 (patch)
treecb4653f8c707a566c5c260f3af2b60a8ead98f93 /sys/netinet
parentc8a811b93f0b526326bdaaafae921926d09e01a3 (diff)
downloadFreeBSD-src-c8b4c281faf741755004c5c7a66d1793de1b9a26.zip
FreeBSD-src-c8b4c281faf741755004c5c7a66d1793de1b9a26.tar.gz
Correct incorrect assertion in div_bind(): inp must not be NULL here.
Reported by: tegge MFC after: 3 months
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 89aa4e4..8cfad6b 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -438,7 +438,7 @@ div_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
int error;
inp = sotoinpcb(so);
- KASSERT(inp == NULL, ("div_bind: inp == NULL"));
+ KASSERT(inp != NULL, ("div_bind: inp == NULL"));
/* in_pcbbind assumes that nam is a sockaddr_in
* and in_pcbbind requires a valid address. Since divert
* sockets don't we need to make sure the address is
OpenPOWER on IntegriCloud