From a63a049b7c08070a2a25b3dd460c29d65dfe6d19 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 20 Jun 1998 16:55:44 +0000 Subject: 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. --- sys/net/ppp_deflate.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys') 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 { -- cgit v1.1