]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Hiroshi Oota points out that PuTTY's agent forwarding sockets can get
authorSimon Tatham <anakin@pobox.com>
Sat, 8 Sep 2012 10:40:36 +0000 (10:40 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 8 Sep 2012 10:40:36 +0000 (10:40 +0000)
commit14539a77197feb8d9e0f56433545fcd828b8aa3a
tree82b6a303f2b42c9e9922ffbd7ca1c38a9a21ae16
parent33c58dd91b8350bd47b363786a3f39587cf8ead6
Hiroshi Oota points out that PuTTY's agent forwarding sockets can get
confused if they receive a request followed by immediate EOF, since we
currently send outgoing EOF as soon as we see the incoming one - and
then, when the response comes back from the real SSH agent, we send it
along anyway as channel data in spite of having sent EOF.

To fix this, I introduce a new field for each agent channel which
counts the number of calls to ssh_agentf_callback that are currently
expected, and we don't send EOF on an agent channel until we've both
received EOF and that value drops to zero.

[originally from svn r9651]
ssh.c