diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-16 00:37:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-16 00:37:34 +0000 |
commit | 1c9ffd247a8f327334a1c919423b707fe464ffac (patch) | |
tree | 609e7c2d58fb014f39d3a3e5163c8c133d115b8a /sys/kern | |
parent | 2fbfee896e08736dbae2455199cd9c351520c337 (diff) | |
download | FreeBSD-src-1c9ffd247a8f327334a1c919423b707fe464ffac.zip FreeBSD-src-1c9ffd247a8f327334a1c919423b707fe464ffac.tar.gz |
When entering soclose(), assert that SS_NOFDREF is not already set.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 4d58bbc..7f38b90 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -396,6 +396,8 @@ soclose(so) { int error = 0; + KASSERT(!(so->so_state & SS_NOFDREF), ("soclose: SS_NOFDREF on enter")); + funsetown(&so->so_sigio); if (so->so_options & SO_ACCEPTCONN) { struct socket *sp; |