X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=ultrix%2Fbsd-comp.c;h=12bca928f04c3b5220b8e16c41cf82396ea9382c;hp=933a5cc4dd5c212ee9f6cd3c06050289ab8802cb;hb=031ccaeb1dd0343d7b10990f49be6a9f4e82a7dc;hpb=d344ccb0681c547ce4087962b54d10859bb09137;ds=sidebyside diff --git a/ultrix/bsd-comp.c b/ultrix/bsd-comp.c index 933a5cc..12bca92 100644 --- a/ultrix/bsd-comp.c +++ b/ultrix/bsd-comp.c @@ -40,7 +40,7 @@ /* * This version is for use with mbufs on Ultrix systems. * - * $Id: bsd-comp.c,v 1.5 1995/05/02 02:48:14 paulus Exp $ + * $Id: bsd-comp.c,v 1.6 1996/01/18 03:13:09 paulus Exp $ */ #include "../h/param.h" @@ -416,7 +416,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