summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-04-06 02:54:42 +0000
committerrwatson <rwatson@FreeBSD.org>2006-04-06 02:54:42 +0000
commitd2dc014de0d2ed21eccdaf1c899a05a42610b65a (patch)
tree45c9eee0b0f7b3b75c93d2b365009dc2b142a140
parent8a6c02da7df4358036aa25e6bfdff3041be47c60 (diff)
downloadFreeBSD-src-d2dc014de0d2ed21eccdaf1c899a05a42610b65a.zip
FreeBSD-src-d2dc014de0d2ed21eccdaf1c899a05a42610b65a.tar.gz
Correct assertion in ng_detach().
Submitted by: tegge MFC after: 3 months
-rw-r--r--sys/netgraph/ng_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index 5641effd..443a597 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);
}
OpenPOWER on IntegriCloud