]> git.ozlabs.org Git - ppp.git/commitdiff
bug fix from Johan Widen
authorPaul Mackerras <paulus@samba.org>
Tue, 2 Mar 1999 05:34:16 +0000 (05:34 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 2 Mar 1999 05:34:16 +0000 (05:34 +0000)
pppd/cbcp.c

index 9d56850606edb614138bb8089586779d17e67314..8add25f09b63887d6e793699afafb6b154530e9f 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: cbcp.c,v 1.3 1998/11/07 06:59:25 paulus Exp $";
+static char rcsid[] = "$Id: cbcp.c,v 1.4 1999/03/02 05:34:16 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -371,10 +371,9 @@ cbcp_resp(us)
     if (cb_type & ( 1 << CB_CONF_ADMIN ) ) {
        syslog(LOG_DEBUG, "cbcp_resp CONF_ADMIN");
         PUTCHAR(CB_CONF_ADMIN, bufp);
     if (cb_type & ( 1 << CB_CONF_ADMIN ) ) {
        syslog(LOG_DEBUG, "cbcp_resp CONF_ADMIN");
         PUTCHAR(CB_CONF_ADMIN, bufp);
-       len = 3 + 1;
-       PUTCHAR(len , bufp);
+       len = 3;
+       PUTCHAR(len, bufp);
        PUTCHAR(5, bufp); /* delay */
        PUTCHAR(5, bufp); /* delay */
-       PUTCHAR(0, bufp);
        cbcp_send(us, CBCP_RESP, buf, len);
        return;
     }
        cbcp_send(us, CBCP_RESP, buf, len);
        return;
     }