Argh, I messed up SSH1 remote tunnels too (same mistake).
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 1 Nov 2004 14:18:37 +0000 (14:18 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 1 Nov 2004 14:18:37 +0000 (14:18 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4728 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 08a0aff..42e2077 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -3582,7 +3582,8 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt)
            }
            if (sport && dport) {
                /* Set up a description of the source port. */
-               char *sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s",
+               static char *sportdesc;
+               sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s",
                        (int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL,
                        (int)(*saddr?1:0), ":",
                        (int)(sserv ? strlen(sports) : 0), sports,