summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-12-10 18:40:57 +0000
committerbrian <brian@cvs.openbsd.org>1998-12-10 18:40:57 +0000
commit23a70e50b43e59a16025f1048560c80285954902 (patch)
treed36615d9eb2e395cf462313eec794225933f0cfc /usr.sbin
parent38562359457af0c977f1820b7f85c07af8c7ce82 (diff)
Boy, this was tricky to find:
Remove any dial timer that might be hanging around at datalink_Destroy() time. This timer may be left running after the link is closed (making sure it's not automatically opened again too soon).
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/datalink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/datalink.c b/usr.sbin/ppp/ppp/datalink.c
index 2c8a4c61dbc..1f3de81ce2b 100644
--- a/usr.sbin/ppp/ppp/datalink.c
+++ b/usr.sbin/ppp/ppp/datalink.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: datalink.c,v 1.2 1998/10/29 02:21:44 brian Exp $
+ * $Id: datalink.c,v 1.3 1998/12/10 18:40:56 brian Exp $
*/
#include <sys/types.h>
@@ -811,6 +811,7 @@ datalink_Destroy(struct datalink *dl)
}
}
+ timer_Stop(&dl->dial_timer);
result = dl->next;
modem_Destroy(dl->physical);
free(dl->name);