X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=freebsd-2.0%2Fbsd-comp.c;h=d128e0c0e2d8e6dd90db7d1cadbd289e88a94908;hp=e34c32a2aa006e00ac5b59f333592fda8fb2634e;hb=031ccaeb1dd0343d7b10990f49be6a9f4e82a7dc;hpb=50f3327bd999de5edd01727294dad46c86ef3564 diff --git a/freebsd-2.0/bsd-comp.c b/freebsd-2.0/bsd-comp.c index e34c32a..d128e0c 100644 --- a/freebsd-2.0/bsd-comp.c +++ b/freebsd-2.0/bsd-comp.c @@ -40,7 +40,7 @@ /* * This version is for use with mbufs on BSD-derived systems. * - * $Id: bsd-comp.c,v 1.1 1995/10/27 03:35:14 paulus Exp $ + * $Id: bsd-comp.c,v 1.2 1996/01/18 03:12:35 paulus Exp $ */ #include @@ -406,7 +406,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp) { int i; - if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS + if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS || options[1] != CILEN_BSD_COMPRESS || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION || BSD_NBITS(options[2]) != db->maxbits