pf->dport = dport;
if (add234(ssh_rportfwds, pf) != pf) {
sprintf(buf,
- "Duplicate remote port forwarding to %s:%s",
+ "Duplicate remote port forwarding to %s:%d",
host, dport);
logevent(buf);
sfree(pf);
for(h = host, p = pktin.body+8; hostsize != 0; hostsize--) {
if (h+1 < host+sizeof(host))
*h++ = *p;
- *p++;
+ p++;
}
*h = 0;
port = GET_32BIT(p);
pf->sport = sport;
if (add234(ssh_rportfwds, pf) != pf) {
sprintf(buf,
- "Duplicate remote port forwarding to %s:%s",
+ "Duplicate remote port forwarding to %s:%d",
host, dport);
logevent(buf);
sfree(pf);