Move the SSH-1 servkey and hostkey variables into the coroutine state,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 7 Jul 2013 14:34:37 +0000 (14:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 7 Jul 2013 14:34:37 +0000 (14:34 +0000)
commitaacc46fab3288bb9ac32c5d50ccfb9c3ecbfd95d
tree30d980b77dcce5bcc21ea96de24836cdd237d767
parent772e31660471d86323fcf959c9cbde9861e7b4d9
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: svn://svn.tartarus.org/sgt/putty@9895 cda61777-01e9-0310-a592-d414129be87e
ssh.c