diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-06-22 12:42:13 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-06-22 12:42:13 +0200 |
commit | c3833c6c03726f5041664931f2b413734613d959 (patch) | |
tree | ef11a96a9cb96db5766c9acd79c3c048f0358d44 /libssh/gzip.c | |
parent | 65008e2d3cf4d50bdb22a750b21ec96e7d6104ff (diff) | |
download | libssh-c3833c6c03726f5041664931f2b413734613d959.tar.gz libssh-c3833c6c03726f5041664931f2b413734613d959.tar.xz libssh-c3833c6c03726f5041664931f2b413734613d959.zip |
Fix threadsafety issue in zlib code
Diffstat (limited to 'libssh/gzip.c')
-rw-r--r-- | libssh/gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/gzip.c b/libssh/gzip.c index 41c198ec..1e892dc7 100644 --- a/libssh/gzip.c +++ b/libssh/gzip.c @@ -61,7 +61,7 @@ static ssh_buffer gzip_compress(ssh_session session,ssh_buffer source,int level) void *in_ptr = ssh_buffer_get_begin(source); unsigned long in_size = ssh_buffer_get_len(source); ssh_buffer dest = NULL; - static unsigned char out_buf[BLOCKSIZE] = {0}; + unsigned char out_buf[BLOCKSIZE] = {0}; unsigned long len; int status; @@ -149,7 +149,7 @@ static ssh_buffer gzip_decompress(ssh_session session, ssh_buffer source, size_t z_stream *zin = session->current_crypto->compress_in_ctx; void *in_ptr = buffer_get_rest(source); unsigned long in_size = buffer_get_rest_len(source); - static unsigned char out_buf[BLOCKSIZE] = {0}; + unsigned char out_buf[BLOCKSIZE] = {0}; ssh_buffer dest = NULL; unsigned long len; int status; |