]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix two double-frees in ssh2_load_userkey().
authorSimon Tatham <anakin@pobox.com>
Tue, 28 Oct 2014 18:39:55 +0000 (18:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 28 Oct 2014 18:40:43 +0000 (18:40 +0000)
commit32adc1a79d0de4219c877f6be80b46984319c1c9
tree3a0544afc11d48a1af8e33fabd672b10242854eb
parentbbfd5f4a7c43a80e207a53f0f121a90ff7bbe057
Fix two double-frees in ssh2_load_userkey().

We should NULL out mac after freeing it, so that the cleanup code
doesn't try to free it again; also if the final key creation fails, we
should avoid freeing ret->comment when we're going to go to that same
cleanup code which will free 'comment' which contains the same pointer.

Thanks to Christopher Staite for pointing these out.
sshpubk.c