]> git.ozlabs.org Git - ppp.git/blobdiff - linux/ppp_deflate.c
Update from Steve Perkins
[ppp.git] / linux / ppp_deflate.c
index e1e6ff4668c015adce873ab13986c86f9c040516..a812eea6ca559baea32986eba8244cb9bfd2f50e 100644 (file)
@@ -3,7 +3,7 @@
  *
  * ppp_deflate.c - interface the zlib procedures for Deflate compression
  * and decompression (as used by gzip) to the PPP code.
  *
  * 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.
  *
  * 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;
                return DECOMP_ERROR;
+       }
 
        olen = osize + overflow - state->strm.avail_out;
        state->stats.unc_bytes += olen;
 
        olen = osize + overflow - state->strm.avail_out;
        state->stats.unc_bytes += olen;