mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Dan Fandrich's zlib fix
This commit is contained in:
parent
2b277f85f5
commit
292ef5fabb
@ -82,6 +82,8 @@ Curl_unencode_deflate_write(struct SessionHandle *data,
|
|||||||
z->zalloc = (alloc_func)Z_NULL;
|
z->zalloc = (alloc_func)Z_NULL;
|
||||||
z->zfree = (free_func)Z_NULL;
|
z->zfree = (free_func)Z_NULL;
|
||||||
z->opaque = 0; /* of dubious use 08/27/02 jhrg */
|
z->opaque = 0; /* of dubious use 08/27/02 jhrg */
|
||||||
|
z->next_in = NULL;
|
||||||
|
z->avail_in = 0;
|
||||||
if (inflateInit(z) != Z_OK)
|
if (inflateInit(z) != Z_OK)
|
||||||
return process_zlib_error(data, z);
|
return process_zlib_error(data, z);
|
||||||
k->zlib_init = 1;
|
k->zlib_init = 1;
|
||||||
@ -224,6 +226,8 @@ Curl_unencode_gzip_write(struct SessionHandle *data,
|
|||||||
z->zalloc = (alloc_func)Z_NULL;
|
z->zalloc = (alloc_func)Z_NULL;
|
||||||
z->zfree = (free_func)Z_NULL;
|
z->zfree = (free_func)Z_NULL;
|
||||||
z->opaque = 0; /* of dubious use 08/27/02 jhrg */
|
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)
|
if (inflateInit2(z, -MAX_WBITS) != Z_OK)
|
||||||
return process_zlib_error(data, z);
|
return process_zlib_error(data, z);
|
||||||
k->zlib_init = 1; /* Initial call state */
|
k->zlib_init = 1; /* Initial call state */
|
||||||
|
@ -158,6 +158,8 @@ void hugehelp(void)
|
|||||||
z.zalloc = (alloc_func)Z_NULL;
|
z.zalloc = (alloc_func)Z_NULL;
|
||||||
z.zfree = (free_func)Z_NULL;
|
z.zfree = (free_func)Z_NULL;
|
||||||
z.opaque = 0;
|
z.opaque = 0;
|
||||||
|
z.next_in = NULL;
|
||||||
|
z.avail_in = 0;
|
||||||
|
|
||||||
if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
|
if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user