]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit - ssh.c
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)
commit56678e053fdfc30ced6b1a28701328ba18d349d8
tree30d980b77dcce5bcc21ea96de24836cdd237d767
parent7314fab6cf914a18b8bd639488df36b0a7cdb7b5
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.)

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