Correct incorrect assertion in div_bind(): inp must not be NULL here.

Reported by:	tegge
MFC after:	3 months
This commit is contained in:
rwatson 2006-04-03 09:01:17 +00:00
parent c8a811b93f
commit c8b4c281fa

View File

@ -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