aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-06-22 12:42:13 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-06-22 12:42:13 +0200
commitc3833c6c03726f5041664931f2b413734613d959 (patch)
treeef11a96a9cb96db5766c9acd79c3c048f0358d44 /libssh
parent65008e2d3cf4d50bdb22a750b21ec96e7d6104ff (diff)
downloadlibssh-c3833c6c03726f5041664931f2b413734613d959.tar.gz
libssh-c3833c6c03726f5041664931f2b413734613d959.tar.xz
libssh-c3833c6c03726f5041664931f2b413734613d959.zip
Fix threadsafety issue in zlib code
Diffstat (limited to 'libssh')
-rw-r--r--libssh/gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/gzip.c b/libssh/gzip.c
index 41c198e..1e892dc 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;