GUAC-1264: Use proper parameter for SFTP password within RDP.

This commit is contained in:
Michael Jumper 2015-07-24 13:54:39 -07:00
parent ec595b9cff
commit 6f48ebe7fe

View File

@ -857,7 +857,7 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
"Authenticating with password."); "Authenticating with password.");
/* Parse password - use RDP password by default */ /* Parse password - use RDP password by default */
const char* sftp_password = argv[IDX_SFTP_USERNAME]; const char* sftp_password = argv[IDX_SFTP_PASSWORD];
if (sftp_password[0] == '\0' && settings->password != NULL) if (sftp_password[0] == '\0' && settings->password != NULL)
sftp_password = settings->password; sftp_password = settings->password;