summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-01-09 20:29:43 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-01-09 20:29:43 +0000
commit1c2dbae3782a9af621a9d39b2388249f24e4a16f (patch)
tree26e52e2be398f2d3bc833e612036b804c44597c9 /sys/net
parent293ee78424e1ac4a69060303df215db34a329a25 (diff)
No need to call bpfdetach() in mpe_clone_destroy() since this is done in
if_detach() which is called right afterwards. Found by Gleydson Soares (gleydson (at) trusted.com.br)
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_mpe.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index c49f582a7c3..cbfb7c5819f 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.17 2009/12/26 12:34:41 claudio Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.18 2010/01/09 20:29:42 claudio Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -127,9 +127,6 @@ mpe_clone_destroy(struct ifnet *ifp)
LIST_REMOVE(mpeif, sc_list);
splx(s);
-#if NBPFILTER > 0
- bpfdetach(ifp);
-#endif
if_detach(ifp);
free(mpeif, M_DEVBUF);
return (0);