X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fccp.c;h=23fee58446584ece466faafcedd4155ad773feac;hb=be02b8b2a7aee9dc934c3f9df72b60775ad0454e;hp=e695fe9cc013bff7415923f69bd3633533c22f71;hpb=4420a694ac374773a6a4b5cce81a5d953b775658;p=ppp.git diff --git a/pppd/ccp.c b/pppd/ccp.c index e695fe9..23fee58 100644 --- a/pppd/ccp.c +++ b/pppd/ccp.c @@ -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.10 1995/06/06 01:52:23 paulus Exp $"; #endif #include @@ -109,6 +109,7 @@ ccp_init(unit) memset(&ccp_allowoptions[unit], 0, sizeof(ccp_options)); memset(&ccp_hisoptions[unit], 0, sizeof(ccp_options)); + ccp_wantoptions[0].bsd_compress = 1; ccp_wantoptions[0].bsd_bits = 12; /* default value */ ccp_allowoptions[0].bsd_compress = 1; @@ -452,6 +453,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)