Do not prompt if blank password was provided

This commit is contained in:
Tobias 2018-09-19 15:36:24 +02:00 committed by GitHub
parent 59ae00baaa
commit a4df4f7bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,8 +190,7 @@ static int nla_client_init(rdpNla* nla)
settings->DisableCredentialsDelegation = TRUE;
if ((!settings->Username) || (!strlen(settings->Username))
|| (((!settings->Password) || (!strlen(settings->Password)))
&& (!settings->RedirectionPassword)))
|| ((!settings->Password) && (!settings->RedirectionPassword)))
{
PromptPassword = TRUE;
}