1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Rejig windlg.c:verify_ssh_host_key() to silence a warning.

[originally from svn r8394]
This commit is contained in:
Jacob Nevins 2009-01-06 00:25:07 +00:00
parent 2550cd617c
commit fbbec4c23a

View File

@ -786,7 +786,7 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
if (ret == 0) /* success - key matched OK */
return 1;
if (ret == 2) { /* key was different */
else if (ret == 2) { /* key was different */
int mbret;
char *text = dupprintf(wrongmsg, appname, keytype, fingerprint,
appname);
@ -802,9 +802,7 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
return 1;
} else if (mbret == IDNO)
return 1;
return 0;
}
if (ret == 1) { /* key was absent */
} else if (ret == 1) { /* key was absent */
int mbret;
char *text = dupprintf(absentmsg, keytype, fingerprint, appname);
char *caption = dupprintf(mbtitle, appname);
@ -819,8 +817,8 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
return 1;
} else if (mbret == IDNO)
return 1;
return 0;
}
return 0; /* abandon the connection */
}
/*