supply zalloc_init function ptr for zlib stuff
authorPaul Mackerras <paulus@samba.org>
Wed, 30 Apr 1997 06:00:45 +0000 (06:00 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 30 Apr 1997 06:00:45 +0000 (06:00 +0000)
ultrix/ppp-deflate.c

index d13dbb949063ed2eb80f17b5b2518d90f539b798..1e6fa93bacb48cf062691d92e5227966ec35b129 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: ppp-deflate.c,v 1.2 1996/09/26 06:19:18 paulus Exp $       */
+/*     $Id: ppp-deflate.c,v 1.3 1997/04/30 06:00:45 paulus Exp $       */
 
 /*
  * ppp_deflate.c - interface the zlib procedures for Deflate compression
@@ -157,6 +157,7 @@ z_comp_alloc(options, opt_len)
 
     state->strm.next_in = NULL;
     state->strm.zalloc = (alloc_func) zalloc;
+    state->strm.zalloc_init = (alloc_func) zalloc;
     state->strm.zfree = (free_func) zfree;
     if (deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, DEFLATE_METHOD_VAL,
                     -w_size, 8, Z_DEFAULT_STRATEGY, DEFLATE_OVHD+2) != Z_OK) {
@@ -392,6 +393,7 @@ z_decomp_alloc(options, opt_len)
 
     state->strm.next_out = NULL;
     state->strm.zalloc = (alloc_func) zalloc;
+    state->strm.zalloc_init = (alloc_func) zalloc;
     state->strm.zfree = (free_func) zfree;
     if (inflateInit2(&state->strm, -w_size) != Z_OK) {
        KM_FREE(state, KM_DEVBUF);