X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=NeXT%2Fbsd-comp.c;h=1124855d6fee8dc692873c0b39eaa13e25a7ddac;hp=0e3dd41f55c2be4344b6822844961c15de6e2d73;hb=c5871dbfa014bb554c101e65150c48fc8ba80c7b;hpb=7554d5fef3f478ca0f9c8911522d7c1783989eae;ds=sidebyside diff --git a/NeXT/bsd-comp.c b/NeXT/bsd-comp.c index 0e3dd41..1124855 100644 --- a/NeXT/bsd-comp.c +++ b/NeXT/bsd-comp.c @@ -49,7 +49,7 @@ /* * This version is for use with mbufs on BSD-derived systems. * - * $Id: bsd-comp.c,v 1.1 1995/12/18 03:30:00 paulus Exp $ + * $Id: bsd-comp.c,v 1.2 1996/01/18 03:12:26 paulus Exp $ */ #include @@ -459,7 +459,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