From c34ff1bcbfddd185cc4d89f445d517776f49f65f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 12 Dec 2000 11:07:59 +0000 Subject: [PATCH] Fix an intermittent segfault that prevented the new Zlib compression from being very useful. (Thanks to Minefield for catching it.) [originally from svn r820] --- ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index e86dff66..a408836a 100644 --- 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"); }