simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Jan 25 15:58:57 GMT 2014


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10121
Date:           2014-01-25 15:58:57 +0000 (Sat, 25 Jan 2014)

Log message (12 lines):
Avoid misidentifying unbracketed IPv6 literals as host:port.

Both GUI PuTTY front ends have a piece of logic whereby a string is
interpreted as host:port if there's _one_ colon in it, but if there's
more than one colon then it's assumed to be an IPv6 literal with no
trailing port number. This permits the PuTTY command line to take
strings such as 'host', 'host:22' or '[::1]:22', but also cope with a
bare v6 literal such as '::1'.

This logic is also required in the two Plink front ends and in the
processing of CONF_loghost for host key indexing in ssh.c, but was
missing in all those places. Add it.

Modified files:
U   putty/ssh.c
U   putty/unix/uxplink.c
U   putty/windows/winplink.c

Links:
http://svn.tartarus.org/sgt/?rev=10121&view=rev
http://svn.tartarus.org/sgt/putty/ssh.c?rev=10121&r1=10120&r2=10121
http://svn.tartarus.org/sgt/putty/unix/uxplink.c?rev=10121&r1=10120&r2=10121
http://svn.tartarus.org/sgt/putty/windows/winplink.c?rev=10121&r1=10120&r2=10121



More information about the tartarus-commits mailing list