summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2014-10-21 10:52:54 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2014-10-21 10:52:54 +0000
commite75da720bf10857a1d0b8ca1d4134d92184a4454 (patch)
treea403d7402c5674fef7d5b84c14700ace4311eee2 /sys/net/if_tun.c
parent4e603f633733a8f5af15714b6417a92bf484433c (diff)
tun(4) has a pipex session which is used for multicast internally, it
wasn't freeed when the interface is destroyed. Free it properly. ok dlg
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index b68e5a2eec5..2350c436e5e 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.128 2014/09/08 06:24:13 jsg Exp $ */
+/* $OpenBSD: if_tun.c,v 1.129 2014/10/21 10:52:53 yasuoka Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -226,7 +226,7 @@ tun_clone_destroy(struct ifnet *ifp)
int s;
#ifdef PIPEX
- pipex_iface_stop(&tp->pipex_iface);
+ pipex_iface_fini(&tp->pipex_iface);
#endif
tun_wakeup(tp);