diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 5641effd641c..443a597cb276 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -398,7 +398,7 @@ ngd_detach(struct socket *so) { struct ngpcb *const pcbp = sotongpcb(so); - KASSERT(pcbp == NULL, ("ngd_detach: pcbp == NULL")); + KASSERT(pcbp != NULL, ("ngd_detach: pcbp == NULL")); ng_detach_common(pcbp, NG_DATA); }