mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Oops; we _do_ need to set dport even when doing dynamic forwarding,
because otherwise the `if (sport && dport)' statement runs the risk of not working. [originally from svn r3129]
This commit is contained in:
parent
22d8cfe36f
commit
717fd50963
2
ssh.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user