X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Ffsm.c;h=902ad64cbbc2733132ef69b3571fb3de20e441f6;hp=e07e38d2ee853698695e423425b0aa4ab3c80c5e;hb=e5e66630876a7fa7b8bcca319dac26466e39ed51;hpb=ca831b6745bc15245654acac88b0f428f060cdcc;ds=sidebyside diff --git a/pppd/fsm.c b/pppd/fsm.c index e07e38d..902ad64 100644 --- a/pppd/fsm.c +++ b/pppd/fsm.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: fsm.c,v 1.2 1994/04/18 04:01:50 paulus Exp $"; +static char rcsid[] = "$Id: fsm.c,v 1.3 1994/05/24 11:21:10 paulus Exp $"; #endif /* @@ -407,6 +407,8 @@ fsm_rconfreq(f, id, inp, len) code = (*f->callbacks->reqci)(f, inp, &len, reject_if_disagree); } else if (len) code = CONFREJ; /* Reject all CI */ + else + code = CONFACK; /* send the Ack, Nak or Rej to the peer */ fsm_sdata(f, code, id, inp, len); @@ -716,11 +718,11 @@ fsm_sconfreq(f, retransmit) /* * Make up the request packet */ + outp = outpacket_buf + DLLHEADERLEN + HEADERLEN; if( f->callbacks->cilen && f->callbacks->addci ){ cilen = (*f->callbacks->cilen)(f); if( cilen > peer_mru[f->unit] - HEADERLEN ) cilen = peer_mru[f->unit] - HEADERLEN; - outp = outpacket_buf + DLLHEADERLEN + HEADERLEN; if (f->callbacks->addci) (*f->callbacks->addci)(f, outp, &cilen); } else