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:
rwatson 2006-03-25 18:54:17 +00:00
parent 851b87ce3b
commit d1671df339

View File

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