From: Paul Mackerras Date: Mon, 1 Jul 1996 05:32:37 +0000 (+0000) Subject: only set VJ maxcid when we're turning VJ on X-Git-Tag: RELEASE_2_3_6~385 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=2c2fd4c10e05532a84aa3a5b07190b8c7b138367 only set VJ maxcid when we're turning VJ on --- diff --git a/pppd/sys-bsd.c b/pppd/sys-bsd.c index 123117b..f0e49bc 100644 --- a/pppd/sys-bsd.c +++ b/pppd/sys-bsd.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-bsd.c,v 1.25 1996/05/27 00:00:12 paulus Exp $"; +static char rcsid[] = "$Id: sys-bsd.c,v 1.26 1996/07/01 05:32:37 paulus Exp $"; #endif /* @@ -812,7 +812,7 @@ sifvjcomp(u, vjcomp, cidcomp, maxcid) syslog(LOG_ERR, "ioctl(PPPIOCSFLAGS): %m"); return 0; } - if (ioctl(ppp_fd, PPPIOCSMAXCID, (caddr_t) &maxcid) < 0) { + if (vjcomp && ioctl(ppp_fd, PPPIOCSMAXCID, (caddr_t) &maxcid) < 0) { syslog(LOG_ERR, "ioctl(PPPIOCSFLAGS): %m"); return 0; }