GUACAMOLE-547: Relocate NULL check and log when NONE succeeds.
This commit is contained in:
parent
b7dca0ed16
commit
4641da06ac
@ -318,12 +318,17 @@ static int guac_common_ssh_authenticate(guac_common_ssh_session* common_session)
|
||||
/* Get list of supported authentication methods */
|
||||
char* user_authlist = libssh2_userauth_list(session, username,
|
||||
strlen(username));
|
||||
|
||||
/* If auth list is NULL, then authentication has succeeded with NONE */
|
||||
if (user_authlist == NULL) {
|
||||
guac_client_log(client, GUAC_LOG_DEBUG,
|
||||
"SSH NONE authentication succeeded.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
guac_client_log(client, GUAC_LOG_DEBUG,
|
||||
"Supported authentication methods: %s", user_authlist);
|
||||
|
||||
/* If auth list is NULL, then authentication has succeeded with NONE */
|
||||
if (user_authlist == NULL)
|
||||
return 0;
|
||||
|
||||
/* Authenticate with private key, if provided */
|
||||
if (key != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user