Correct incorrect assertion in div_bind(): inp must not be NULL here.
Reported by: tegge MFC after: 3 months
This commit is contained in:
parent
c8a811b93f
commit
c8b4c281fa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user