From c0a1b804a74d6ab1905c89c8da35c778fa602efe Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 6 Apr 2006 02:54:42 +0000 Subject: [PATCH] Correct assertion in ng_detach(). Submitted by: tegge MFC after: 3 months --- sys/netgraph/ng_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }