Do not prompt if blank password was provided
authorTobias <tobias@wallura.org>
Wed, 19 Sep 2018 13:36:24 +0000 (15:36 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Sep 2018 13:36:24 +0000 (15:36 +0200)
libfreerdp/core/nla.c

index 434b287..530be18 100644 (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;
        }