From: Frank Cusack Date: Fri, 17 Jan 2003 07:23:35 +0000 (+0000) Subject: Don't include delay field when responding to CBCP req with "NoCallback". X-Git-Tag: ppp-2.4.7~340 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=d1de5b3aba4bb773730b1d4420523c278e7561cb;p=ppp.git Don't include delay field when responding to CBCP req with "NoCallback". Bug noted by Radu Greab. --- diff --git a/pppd/cbcp.c b/pppd/cbcp.c index 394f9e4..1cd3912 100644 --- a/pppd/cbcp.c +++ b/pppd/cbcp.c @@ -33,7 +33,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: cbcp.c,v 1.14 2002/12/04 23:03:32 paulus Exp $" +#define RCSID "$Id: cbcp.c,v 1.15 2003/01/17 07:23:35 fcusack Exp $" #include #include @@ -394,9 +394,8 @@ cbcp_resp(us) if (cb_type & ( 1 << CB_CONF_NO ) ) { dbglog("cbcp_resp CONF_NO"); PUTCHAR(CB_CONF_NO, bufp); - len = 3; + len = 2; PUTCHAR(len , bufp); - PUTCHAR(0, bufp); cbcp_send(us, CBCP_RESP, buf, len); start_networks(us->us_unit); return;