summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-05-25 13:34:03 +0000
committerrwatson <rwatson@FreeBSD.org>2009-05-25 13:34:03 +0000
commitd4f89343e714a60e7b0cf2426d0f967db61ae078 (patch)
tree824c3ce6cda244d83bd63a092c978f8946b2ee58 /sys/netipx
parent44bf36969eebc4a2c0f076565468e7c9584ed3f2 (diff)
downloadFreeBSD-src-d4f89343e714a60e7b0cf2426d0f967db61ae078.zip
FreeBSD-src-d4f89343e714a60e7b0cf2426d0f967db61ae078.tar.gz
Add missing call to ipx_pcbdetach() during SPX socket tear-down: not
harmful in practice if running without INVARIANTS, but will panic with KASSERT enabled when SPX sockets are closed. MFC after: 3 days
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/spx_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 3e8e81d..97c0a19 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -1253,6 +1253,7 @@ spx_detach(struct socket *so)
IPX_LIST_LOCK();
IPX_LOCK(ipxp);
spx_pcbdetach(ipxp);
+ ipx_pcbdetach(ipxp);
ipx_pcbfree(ipxp);
IPX_LIST_UNLOCK();
}
OpenPOWER on IntegriCloud