]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix handling of duplicate port forwardings; they were effectively cancelling
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 18 Aug 2009 23:38:48 +0000 (23:38 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 18 Aug 2009 23:38:48 +0000 (23:38 +0000)
commitc90f047476c9743c7ab1505022adfb70a2e4a98a
tree4e3f9c526b9fc1259aa3b0f4db44aee1acafe1e9
parentfdfac5d162ad538857b005dd425842322b76a6c6
Fix handling of duplicate port forwardings; they were effectively cancelling
out, but are now just ignored.
(We should make more effort to prevent duplicates before they get as far as
ssh_setup_portfwd() -- it's currently trivially easy to enter them in the
GUI and on the command line, let alone both -- but there's bound to be someone
with a saved session containing dupes out there by now, and anyway there are
duplicates we can't detect before getting this far, for instance
"1234:localhost:22" vs "1234:localhost:ssh".)

[originally from svn r8623]
ssh.c