]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commit48eb6bb3be8969643459159209404c3415e3ff87
tree4e3f9c526b9fc1259aa3b0f4db44aee1acafe1e9
parent2e3bd457dabbb8caa0f7afda17e99c61ef193df0
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".)

git-svn-id: http://svn.tartarus.org/sgt/putty@8623 cda61777-01e9-0310-a592-d414129be87e
ssh.c