Unix Pageant: fix a double-free when adding keys.

I had freed the comment string coming back from pageant_add_keyfile,
but not NULLed out the pointer, so that the cleanup code at the end of
the function would have freed it again.
This commit is contained in:
Simon Tatham 2015-05-13 13:22:44 +01:00
Родитель c6c23ed84b
Коммит a181639521
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -331,6 +331,7 @@ static int unix_add_keyfile(const char *filename_str)
while (1) {
char *passphrase = askpass(err);
sfree(err);
err = NULL;
if (!passphrase)
break;