X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/df85f78b7d1ccff40d78febeab9c350ea910e27f..64febabad88a23aab0c967d49a4f82ae1129fa63:/ssh.c diff --git a/ssh.c b/ssh.c index 925c5b5e..a0041767 100644 --- a/ssh.c +++ b/ssh.c @@ -3177,6 +3177,7 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt) } } else { while (*ssh->portfwd_strptr) ssh->portfwd_strptr++; + dport = -1; } sport = atoi(sports); sserv = 0; @@ -5271,6 +5272,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt) } } else { while (*ssh->portfwd_strptr) ssh->portfwd_strptr++; + dport = -1; } sport = atoi(sports); sserv = 0;