1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 23:34:49 -05:00

Ahem. Fix my hostkey dialog fix so that storing the host key doesn't

close the connection.

[originally from svn r5379]
This commit is contained in:
Jacob Nevins 2005-02-21 23:34:41 +00:00
parent f09e3841de
commit bb874319fb

View File

@ -797,9 +797,10 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
assert(mbret==IDYES || mbret==IDNO || mbret==IDCANCEL);
sfree((void *)mbox.lpszText);
sfree((void *)mbox.lpszCaption);
if (mbret == IDYES)
if (mbret == IDYES) {
store_host_key(host, port, keytype, keystr);
if (mbret == IDNO)
return 1;
} else if (mbret == IDNO)
return 1;
return 0;
}