diff options
author | Paul Mackerras <paulus@samba.org> | 1997-04-30 06:00:45 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 1997-04-30 06:00:45 +0000 |
commit | b4d3cfa4479b4e00b1469577c4761411a82ae8f0 (patch) | |
tree | 94dab477b445c9e15ca3ea395ac26a36b1f9a169 | |
parent | 7ee401ae8098e9ea7794270d28cfd00c1a515319 (diff) | |
download | ppp-b4d3cfa4479b4e00b1469577c4761411a82ae8f0.tar.gz |
supply zalloc_init function ptr for zlib stuff
-rw-r--r-- | ultrix/ppp-deflate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ultrix/ppp-deflate.c b/ultrix/ppp-deflate.c index d13dbb9..1e6fa93 100644 --- a/ultrix/ppp-deflate.c +++ b/ultrix/ppp-deflate.c @@ -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); |