From: Simon Tatham Date: Sat, 22 Nov 2003 14:50:57 +0000 (+0000) Subject: Trivial braino in parsing of the port forwarding config data. Was X-Git-Tag: 0.54~61 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=f9f6763a0e7c49d5445e087ee158cb5c3d45d0a2;p=PuTTY.git 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] --- diff --git a/ssh.c b/ssh.c index 33da9930..d83d0c10 100644 --- a/ssh.c +++ b/ssh.c @@ -3302,6 +3302,7 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt) } else { while (*ssh->portfwd_strptr) ssh->portfwd_strptr++; dport = dserv = -1; + ssh->portfwd_strptr++; /* eat the NUL and move to next one */ } sport = atoi(sports); sserv = 0; @@ -5418,6 +5419,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt) } else { while (*ssh->portfwd_strptr) ssh->portfwd_strptr++; dport = dserv = -1; + ssh->portfwd_strptr++; /* eat the NUL and move to next one */ } sport = atoi(sports); sserv = 0;