diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2006-04-03 09:01:17 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2006-04-03 09:01:17 +0000 |
commit | a34f6c1e1d450b1068e8edf288326f8774a50352 (patch) | |
tree | cb4653f8c707a566c5c260f3af2b60a8ead98f93 /sys/netinet/ip_divert.c | |
parent | 4437e2615f7f5dd55e8ac8edff1b6976ceae4d4d (diff) | |
download | src-a34f6c1e1d450b1068e8edf288326f8774a50352.tar.gz src-a34f6c1e1d450b1068e8edf288326f8774a50352.zip |
Correct incorrect assertion in div_bind(): inp must not be NULL here.
Reported by: tegge
MFC after: 3 months
Notes
Notes:
svn path=/head/; revision=157423
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 89aa4e4f4c7c..8cfad6b84f0c 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 |