1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Fix a minor valgrind issue in dynamic port-forwarding.

[originally from svn r5318]
This commit is contained in:
Jacob Nevins 2005-02-16 11:56:27 +00:00
parent 70de40ba0a
commit 346907478d

2
ssh.c
View File

@ -3808,6 +3808,8 @@ static void ssh_setup_portfwd(Ssh ssh, const Config *cfg)
}
} else {
while (*portfwd_strptr) portfwd_strptr++;
host[0] = 0;
dports[0] = 0;
dport = dserv = -1;
portfwd_strptr++; /* eat the NUL and move to next one */
}