Skip to content
Snippets Groups Projects
Commit 292ef5fa authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Dan Fandrich's zlib fix

parent 2b277f85
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,8 @@ Curl_unencode_deflate_write(struct SessionHandle *data,
z->zalloc = (alloc_func)Z_NULL;
z->zfree = (free_func)Z_NULL;
z->opaque = 0; /* of dubious use 08/27/02 jhrg */
z->next_in = NULL;
z->avail_in = 0;
if (inflateInit(z) != Z_OK)
return process_zlib_error(data, z);
k->zlib_init = 1;
......@@ -224,6 +226,8 @@ Curl_unencode_gzip_write(struct SessionHandle *data,
z->zalloc = (alloc_func)Z_NULL;
z->zfree = (free_func)Z_NULL;
z->opaque = 0; /* of dubious use 08/27/02 jhrg */
z->next_in = NULL;
z->avail_in = 0;
if (inflateInit2(z, -MAX_WBITS) != Z_OK)
return process_zlib_error(data, z);
k->zlib_init = 1; /* Initial call state */
......
......@@ -158,6 +158,8 @@ void hugehelp(void)
z.zalloc = (alloc_func)Z_NULL;
z.zfree = (free_func)Z_NULL;
z.opaque = 0;
z.next_in = NULL;
z.avail_in = 0;
if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment