Missing bits for colour selection support.
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 925c5b5..a004176 100644 (file)
--- 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;