X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/919baedb34e9f6e351d70820529398181d8d0ea6..0aafb388296848047c641f4e382d3a7643684ad0:/unix/gtkdlg.c?ds=sidebyside diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 8ab85981..97af792e 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -2347,13 +2347,12 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype, sfree(text); - if (ret == 0) - return 0; /* do not continue with connection */ - else { - if (ret == 2) - store_host_key(host, port, keytype, keystr); - return 1; /* continue with connection */ - } + if (ret == 2) { + store_host_key(host, port, keytype, keystr); + return 1; /* continue with connection */ + } else if (ret == 1) + return 1; /* continue with connection */ + return 0; /* do not continue with connection */ } /*