X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fppp_deflate.c;h=a812eea6ca559baea32986eba8244cb9bfd2f50e;hp=e1e6ff4668c015adce873ab13986c86f9c040516;hb=fd25394d146bb83043189608d30dd0eeb983186d;hpb=c583c6051df86dd6435e63872de60e69111f14c3 diff --git a/linux/ppp_deflate.c b/linux/ppp_deflate.c index e1e6ff4..a812eea 100644 --- a/linux/ppp_deflate.c +++ b/linux/ppp_deflate.c @@ -3,7 +3,7 @@ * * ppp_deflate.c - interface the zlib procedures for Deflate compression * and decompression (as used by gzip) to the PPP code. - * This version is for use with Linux kernel 1.3.X. + * This version is for use with Linux kernel 1.3.X and later. * * Copyright (c) 1994 The Australian National University. * All rights reserved. @@ -554,8 +554,12 @@ z_decompress(arg, ibuf, isize, obuf, osize) } } - if (decode_proto) + if (decode_proto) { + if (state->debug) + printk(KERN_DEBUG "z_decompress%d: didn't get proto\n", + state->unit); return DECOMP_ERROR; + } olen = osize + overflow - state->strm.avail_out; state->stats.unc_bytes += olen;