fix up sending rejects after nak limit reached
authorPaul Mackerras <paulus@samba.org>
Fri, 19 May 1995 03:17:09 +0000 (03:17 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 19 May 1995 03:17:09 +0000 (03:17 +0000)
pppd/ccp.c

index e695fe9cc013bff7415923f69bd3633533c22f71..0ecfc97e281233099182818c316621580f697732 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: ccp.c,v 1.8 1995/04/26 06:47:24 paulus Exp $";
+static char rcsid[] = "$Id: ccp.c,v 1.9 1995/05/19 03:17:09 paulus Exp $";
 #endif
 
 #include <syslog.h>
@@ -452,6 +452,8 @@ ccp_reqci(f, p, lenp, dont_nak)
            }
        }
 
+       if (newret == CONFNAK && dont_nak)
+           newret = CONFREJ;
        if (!(newret == CONFACK || newret == CONFNAK && ret == CONFREJ)) {
            /* we're returning this option */
            if (newret == CONFREJ && ret == CONFNAK)