summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2003-01-24 10:52:50 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2003-01-24 10:52:50 +0000
commitb7229a1f1c8c16495a5a26eade6ea41bda33b5a9 (patch)
treea5479ef0f6884f75336b0d105ed8bd4315aef818 /sys/netinet
parenta1bca0e6444842314ab57e1415d79d76434940c8 (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 c05605a35130..e7d6fb290823 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -533,7 +533,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