Fix handling of duplicate port forwardings; they were effectively cancelling
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 18 Aug 2009 23:38:48 +0000 (23:38 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 18 Aug 2009 23:38:48 +0000 (23:38 +0000)
commitc00c193154b8922d3f88a65d341027c54ffdd123
tree4e3f9c526b9fc1259aa3b0f4db44aee1acafe1e9
parent403941c05d088f9c179e635cec6813cc7f1d2652
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: svn://svn.tartarus.org/sgt/putty@8623 cda61777-01e9-0310-a592-d414129be87e
ssh.c