diff options
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/raw_ip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 8599a1b..3c37fc4 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -581,7 +581,9 @@ static int rip_abort(struct socket *so) { soisdisconnected(so); - return rip_detach(so); + if (so->so_state & SS_NOFDREF) + return rip_detach(so); + return 0; } static int |