]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - ssh.c
Fix an intermittent segfault that prevented the new Zlib compression
[PuTTY_svn.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index e86dff6689018722f1c4af7432ef03b7e45d6d1f..a408836ae703d9feed6602bbcfe19df7fce21b17 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -410,6 +410,7 @@ next_packet:
        if (pktin.maxlen < st->pad + decomplen) {
            pktin.maxlen = st->pad + decomplen;
            pktin.data = srealloc(pktin.data, pktin.maxlen+APIEXTRA);
+            pktin.body = pktin.data + st->pad + 1;
            if (!pktin.data)
                fatalbox("Out of memory");
        }