mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +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 */
|
if (ret == 0) /* success - key matched OK */
|
||||||
return 1;
|
return 1;
|
||||||
if (ret == 2) { /* key was different */
|
else if (ret == 2) { /* key was different */
|
||||||
int mbret;
|
int mbret;
|
||||||
char *text = dupprintf(wrongmsg, appname, keytype, fingerprint,
|
char *text = dupprintf(wrongmsg, appname, keytype, fingerprint,
|
||||||
appname);
|
appname);
|
||||||
@ -802,9 +802,7 @@ int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
|
|||||||
return 1;
|
return 1;
|
||||||
} else if (mbret == IDNO)
|
} else if (mbret == IDNO)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
} else if (ret == 1) { /* key was absent */
|
||||||
}
|
|
||||||
if (ret == 1) { /* key was absent */
|
|
||||||
int mbret;
|
int mbret;
|
||||||
char *text = dupprintf(absentmsg, keytype, fingerprint, appname);
|
char *text = dupprintf(absentmsg, keytype, fingerprint, appname);
|
||||||
char *caption = dupprintf(mbtitle, 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;
|
return 1;
|
||||||
} else if (mbret == IDNO)
|
} else if (mbret == IDNO)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
return 0; /* abandon the connection */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user