mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-01-07 16:03:51 +08:00
libfreerdp-core: fix credssp check for Authenticate callback
This commit is contained in:
parent
0579f9dd6a
commit
55b32a9ea9
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user