diff options
author | Peter Wemm <peter@FreeBSD.org> | 1998-06-20 16:55:44 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1998-06-20 16:55:44 +0000 |
commit | 8bc3cd621188a2fdfd42b5c01c89a5c0f661f9cc (patch) | |
tree | 28c733910559d931c23532aba4648f3d4a30ed33 /sys/net | |
parent | aa8859a8382de31b2e775c5efaeab3b949ca44b7 (diff) | |
download | src-8bc3cd621188a2fdfd42b5c01c89a5c0f661f9cc.tar.gz src-8bc3cd621188a2fdfd42b5c01c89a5c0f661f9cc.zip |
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.
Notes
Notes:
svn path=/head/; revision=37067
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/ppp_deflate.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/ppp_deflate.c b/sys/net/ppp_deflate.c index bd7fd56e8c2b..bc152e83e0cd 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 { |