X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/755e0524eb217ebed9f649405fa2624b26f0fb29..76a3e871f16ade91d573945193070afaa65fc6c7:/ssh.c diff --git a/ssh.c b/ssh.c index 20be6985..fc20bec1 100644 --- a/ssh.c +++ b/ssh.c @@ -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 */ }