fix problem where lcp echo requests were getting doubled,
authorPaul Mackerras <paulus@samba.org>
Thu, 24 Jun 1999 00:16:38 +0000 (00:16 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Jun 1999 00:16:38 +0000 (00:16 +0000)
tripled, ...

pppd/lcp.c

index c4785a9e9c75593a5a4b470b214b2123750fbfcc..f8e52fe0964b4182fe9f5c1c60026032c3fc0989 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.40 1999/05/13 00:33:26 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.41 1999/06/24 00:16:38 paulus Exp $";
 #endif
 
 /*
@@ -1819,6 +1819,8 @@ LcpEchoCheck (f)
     fsm *f;
 {
     LcpSendEchoRequest (f);
+    if (f->state != OPENED)
+       return;
 
     /*
      * Start the timer for the next interval.