From 212db120e03650c906f9ea442afc322098ca71cb Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 23 Jun 2015 12:07:38 +0200 Subject: [PATCH] Fixed NULL pointer dereference. --- libfreerdp/core/nla.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index df9d61c30..fd3e0a5e7 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -167,6 +167,12 @@ int nla_client_init(rdpNla* nla) { SEC_WINNT_AUTH_IDENTITY* identity = nla->identity; + if (!identity) + { + WLog_ERR(TAG, "NLA identity=%p", identity); + return -1; + } + if (settings->RestrictedAdminModeRequired) { if (settings->PasswordHash)