~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements to PuTTYgen error reporting:
[sgt/putty]
/
windows
/
windlg.c
diff --git
a/windows/windlg.c
b/windows/windlg.c
index
71125ec
..
3a04689
100644
(file)
--- a/
windows/windlg.c
+++ b/
windows/windlg.c
@@
-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);
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);
store_host_key(host, port, keytype, keystr);
- if (mbret == IDNO)
+ return 1;
+ } else if (mbret == IDNO)
return 1;
return 0;
}
return 1;
return 0;
}