]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ahem. Fix my hostkey dialog fix so that storing the host key doesn't
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 21 Feb 2005 23:34:41 +0000 (23:34 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 21 Feb 2005 23:34:41 +0000 (23:34 +0000)
close the connection.

[originally from svn r5379]

windows/windlg.c

index 71125ec89e3abb2f3a9aa3a5649c0a2fb931b0fe..3a0468989787752ee6db756f1d34d38f43f63007 100644 (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;
     }