In at_setsockaddr(), assert that ddp != NULL, rather than returning an
error if it's NULL, as so_pcb != NULL is now an invariant.
This commit is contained in:
parent
851b87ce3b
commit
d1671df339
@ -255,9 +255,8 @@ at_setsockaddr(struct socket *so, struct sockaddr **nam)
|
||||
struct ddpcb *ddp;
|
||||
|
||||
ddp = sotoddpcb(so);
|
||||
if (ddp == NULL) {
|
||||
return (EINVAL);
|
||||
}
|
||||
KASSERT(ddp != NULL, ("at_setsockaddr: ddp == NULL"));
|
||||
|
||||
DDP_LOCK(ddp);
|
||||
at_sockaddr(ddp, nam);
|
||||
DDP_UNLOCK(ddp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user