cvs commit: src/sys/kern uipc_socket.c uipc_socket2.c uipc_usrreq.c src/sys/net raw_cb.c raw_usrreq.c rtsock.c src/sys/netatalk ddp_usrreq.c src/sys/netatm atm_aal5.c atm_socket.c atm_usrreq.c atm_var.h src/sys/netgraph ng_socket.c ...

Robert Watson rwatson at FreeBSD.org
Sun Apr 9 16:35:15 UTC 2006


On Sun, 9 Apr 2006, Pawel Jakub Dawidek wrote:

> +> -static int
> +> +static void
> +>  ngd_detach(struct socket *so)
> +>  {
> +>  	struct ngpcb *const pcbp = sotongpcb(so);
> +>
> +> -	if (pcbp == NULL)
> +> -		return (EINVAL);
> +> +	KASSERT(pcbp == NULL, ("ngd_detach: pcbp == NULL"));
>
> From what I see, it should be:
>
> 	KASSERT(pcbp != NULL, ("ngd_detach: pcbp == NULL"));

This has already been fixed in ng_socket.c:1.73.

Thanks,

Robert N M Watson


More information about the cvs-src mailing list