summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--compress.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 943e248da..c4f556592 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
120011003 120011003
2 - (bal) CVS ID fix up in version.h 2 - (bal) CVS ID fix up in version.h
3 - markus@cvs.openbsd.org 2001/09/27 11:58:16
4 [compress.c]
5 mem leak; chombier@mac.com
3 6
420011001 720011001
5 - (stevesk) loginrec.c: fix type conversion problems exposed when using 8 - (stevesk) loginrec.c: fix type conversion problems exposed when using
@@ -6592,4 +6595,4 @@
6592 - Wrote replacements for strlcpy and mkdtemp 6595 - Wrote replacements for strlcpy and mkdtemp
6593 - Released 1.0pre1 6596 - Released 1.0pre1
6594 6597
6595$Id: ChangeLog,v 1.1569 2001/10/03 17:03:54 mouring Exp $ 6598$Id: ChangeLog,v 1.1570 2001/10/03 17:07:47 mouring Exp $
diff --git a/compress.c b/compress.c
index 3e41b3d82..a779af6d7 100644
--- a/compress.c
+++ b/compress.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: compress.c,v 1.14 2001/04/05 10:39:01 markus Exp $"); 15RCSID("$OpenBSD: compress.c,v 1.15 2001/09/27 11:58:16 markus Exp $");
16 16
17#include "log.h" 17#include "log.h"
18#include "buffer.h" 18#include "buffer.h"
@@ -33,7 +33,7 @@ void
33buffer_compress_init_send(int level) 33buffer_compress_init_send(int level)
34{ 34{
35 if (compress_init_send_called == 1) 35 if (compress_init_send_called == 1)
36 deflateEnd(&incoming_stream); 36 deflateEnd(&outgoing_stream);
37 compress_init_send_called = 1; 37 compress_init_send_called = 1;
38 debug("Enabling compression at level %d.", level); 38 debug("Enabling compression at level %d.", level);
39 if (level < 1 || level > 9) 39 if (level < 1 || level > 9)