summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-20 16:55:44 +0000
committerpeter <peter@FreeBSD.org>1998-06-20 16:55:44 +0000
commita63a049b7c08070a2a25b3dd460c29d65dfe6d19 (patch)
treeb0c5cba70b628b2e6f53b16e05b08bd0f987bef3
parent1e927e303467817cd10d97a8e2b50e501149301b (diff)
downloadFreeBSD-src-a63a049b7c08070a2a25b3dd460c29d65dfe6d19.zip
FreeBSD-src-a63a049b7c08070a2a25b3dd460c29d65dfe6d19.tar.gz
Zap what appears to be a relic of the older version of zlib. The other
maintained mbuf based ppp-deflate.c's have removed this.
-rw-r--r--sys/net/ppp_deflate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/ppp_deflate.c b/sys/net/ppp_deflate.c
index bd7fd56..bc152e8 100644
--- a/sys/net/ppp_deflate.c
+++ b/sys/net/ppp_deflate.c
@@ -1,4 +1,4 @@
-/* $Id: ppp_deflate.c,v 1.9 1998/03/25 14:28:28 peter Exp $ */
+/* $Id: ppp_deflate.c,v 1.10 1998/06/20 16:28:03 peter Exp $ */
/*
* ppp_deflate.c - interface the zlib procedures for Deflate compression
@@ -329,11 +329,8 @@ z_compress(arg, mret, mp, orig_len, maxolen)
/*
* See if we managed to reduce the size of the packet.
- * If the compressor just gave us a single zero byte, it means
- * the packet was incompressible.
*/
- if (m != NULL && olen < orig_len
- && !(olen == PPP_HDRLEN + 3 && *wptr == 0)) {
+ if (m != NULL && olen < orig_len) {
state->stats.comp_bytes += olen;
state->stats.comp_packets++;
} else {
OpenPOWER on IntegriCloud