]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Move the SSH-1 servkey and hostkey variables into the coroutine state,
authorSimon Tatham <anakin@pobox.com>
Sun, 7 Jul 2013 14:34:37 +0000 (14:34 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 7 Jul 2013 14:34:37 +0000 (14:34 +0000)
commitac8baf4cac6b51e5940f1d030277e5e135e465c9
tree30d980b77dcce5bcc21ea96de24836cdd237d767
parent2c586ee2cd6e3ad3c39002e44e6cf73a3b702614
Move the SSH-1 servkey and hostkey variables into the coroutine state,
since there is a theoretical code path (via the crReturn loop after
asking an interactive question about a host key or crypto algorithm)
on which we can leave and return to do_ssh1_login between allocating
and freeing those keys.

(In practice it shouldn't come up anyway with any of the current
implementations of the interactive question functions, not to mention
the unlikelihood of anyone non-specialist still using SSH-1, but
better safe than sorry.)

[originally from svn r9895]
ssh.c