socks5 support for -D

Markus Friedl markus at
Thu Jun 26 17:50:13 EST 2003

On Thu, Jun 26, 2003 at 09:20:23AM +1000, Darren Tucker wrote:
> Markus Friedl wrote:
> > here's an up-to-date patch, should apply to both
> > openbsd and non-openbsd versions of openssh.
> > 
> > i did only test ipv4 addresses.
> Hi.  I just tried this and found that it does not work for the
> SSH_SOCKS5_DOMAIN case because the destination host is not decoded
> correctly.  RFC1928 says the host name has a leading length record (1
> byte) and is not null terminated, so the code as presented has an

then the strlcpy needs to be replaced by a memcpy.

More information about the openssh-unix-dev mailing list