X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=unix%2Fgtkdlg.c;h=97af792e7f7e72a7ed70c894caca14f3f0653d41;hb=8316deb3399fe1d0c406132cf2e795a76de26b64;hp=8ab85981d2d3849be584c2689366cad33c8bcb44;hpb=f73fcb042423866a06b9e41b6934906a0fe9502e;p=PuTTY.git 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 */ } /*