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:
parent
2550cd617c
commit
fbbec4c23a
@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user