libfreerdp-core: fix credssp check for Authenticate callback

This commit is contained in:
Marc-André Moreau 2011-10-21 11:18:11 -04:00
parent 0579f9dd6a
commit 55b32a9ea9
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ typedef struct rdp_freerdp_peer freerdp_peer;
extern "C" {
#endif
typedef void (*pContextSize)(freerdp* instance, uint32* size);
typedef void (*pContextNew)(freerdp* instance, rdpContext* context);
typedef void (*pContextFree)(freerdp* instance, rdpContext* context);

View File

@ -79,7 +79,7 @@ int credssp_ntlmssp_init(rdpCredssp* credssp)
rdpSettings* settings = credssp->transport->settings;
instance = (freerdp*) settings->instance;
if (settings->password == NULL || settings->username)
if ((settings->password == NULL) || (settings->username == NULL))
{
if(instance->Authenticate)
{