mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Fix a minor valgrind issue in dynamic port-forwarding.
[originally from svn r5318]
This commit is contained in:
parent
70de40ba0a
commit
346907478d
2
ssh.c
2
ssh.c
@ -3808,6 +3808,8 @@ static void ssh_setup_portfwd(Ssh ssh, const Config *cfg)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while (*portfwd_strptr) portfwd_strptr++;
|
while (*portfwd_strptr) portfwd_strptr++;
|
||||||
|
host[0] = 0;
|
||||||
|
dports[0] = 0;
|
||||||
dport = dserv = -1;
|
dport = dserv = -1;
|
||||||
portfwd_strptr++; /* eat the NUL and move to next one */
|
portfwd_strptr++; /* eat the NUL and move to next one */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user