summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2005-12-22 23:55:19 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2005-12-22 23:55:19 +0000
commit52a885f709159065261e28b0f84725136c3df9b7 (patch)
tree5a9dcf9d1d8f323e779cdaf0cc9eecbb662367a5 /sys/net
parented95771798cf9a118366c6a8ade9f774d161e5b3 (diff)
Do not check ifp->if_bpf before detaching from bpf. It is only a signal
to the driver that there is a listener. Somehow I assumed that it was a handle, and was trying to figure out why it was becoming zero. Corrected by and ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index cf75acdaef6..2c504770746 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.140 2005/11/29 02:59:42 jolan Exp $ */
+/* $OpenBSD: if.c,v 1.141 2005/12/22 23:55:18 canacar Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -518,9 +518,7 @@ if_detach(struct ifnet *ifp)
#endif
#if NBPFILTER > 0
- /* If there is a bpf device attached, detach from it. */
- if (ifp->if_bpf)
- bpfdetach(ifp);
+ bpfdetach(ifp);
#endif
#ifdef ALTQ
if (ALTQ_IS_ENABLED(&ifp->if_snd))