aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2003-01-18 01:10:55 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2003-01-18 01:10:55 +0000
commitf5c57460471f21fe58831ae41f65814b98b80bd4 (patch)
treed89c75522d75252037e8467512ae4dc1c5e34e13 /sys/netinet
parentd1841903a03f9554fbd258a2fc7f3e135c9c40d9 (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/raw_ip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 8599a1baefe0..3c37fc49c28f 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