From 225e259db996bd07c25c44c610827010c738e8f3 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 27 Jan 2000 00:40:25 +0000 Subject: [PATCH] If we're in callback mode, don't forget this fact when we get into datalink_Down(). Submitted by: David Hedley --- usr.sbin/ppp/datalink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index e984540618ce..6648cfed1459 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -1011,6 +1011,8 @@ datalink_Down(struct datalink *dl, int how) case DATALINK_AUTH: case DATALINK_LCP: fsm2initial(&dl->physical->link.lcp.fsm); + if (dl->state == DATALINK_OPENING) + return; /* we're doing a callback... */ /* fall through */ default: