From 4881b38370d8be2b802d062b5069c00a337aedec Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Sat, 1 Jan 2005 00:30:32 +0000 Subject: Disable timeout before destroying a pppoe interface ok deraadt@, henning@, krw@ --- sys/net/if_pppoe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net/if_pppoe.c') diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index 1c541608c16..d7db42c70b7 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppoe.c,v 1.2 2004/11/29 20:15:40 pat Exp $ */ +/* $OpenBSD: if_pppoe.c,v 1.3 2005/01/01 00:30:31 canacar Exp $ */ /* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */ /* @@ -272,6 +272,7 @@ pppoe_clone_destroy(struct ifnet *ifp) s = splimp(); LIST_REMOVE(sc, sc_list); + timeout_del(&sc->sc_timeout); splx(s); #if NBPFILTER > 0 -- cgit v1.2.3