mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 02:02:26 +00:00
Trivial braino in parsing of the port forwarding config data. Was
causing all port forwardings after the first dynamic one to be ignored. [originally from svn r3572]
This commit is contained in:
parent
c4f157a4e5
commit
f9f6763a0e
2
ssh.c
2
ssh.c
@ -3302,6 +3302,7 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt)
|
|||||||
} else {
|
} else {
|
||||||
while (*ssh->portfwd_strptr) ssh->portfwd_strptr++;
|
while (*ssh->portfwd_strptr) ssh->portfwd_strptr++;
|
||||||
dport = dserv = -1;
|
dport = dserv = -1;
|
||||||
|
ssh->portfwd_strptr++; /* eat the NUL and move to next one */
|
||||||
}
|
}
|
||||||
sport = atoi(sports);
|
sport = atoi(sports);
|
||||||
sserv = 0;
|
sserv = 0;
|
||||||
@ -5418,6 +5419,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
|
|||||||
} else {
|
} else {
|
||||||
while (*ssh->portfwd_strptr) ssh->portfwd_strptr++;
|
while (*ssh->portfwd_strptr) ssh->portfwd_strptr++;
|
||||||
dport = dserv = -1;
|
dport = dserv = -1;
|
||||||
|
ssh->portfwd_strptr++; /* eat the NUL and move to next one */
|
||||||
}
|
}
|
||||||
sport = atoi(sports);
|
sport = atoi(sports);
|
||||||
sserv = 0;
|
sserv = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user