core: Propagate credssp error code by setting last error
authorMartin Fleisz <martin.fleisz@thincast.com>
Mon, 21 Mar 2016 09:23:18 +0000 (10:23 +0100)
committerMartin Fleisz <martin.fleisz@thincast.com>
Mon, 21 Mar 2016 09:23:18 +0000 (10:23 +0100)
libfreerdp/core/nla.c

index 471f1dc..4a9ed61 100644 (file)
@@ -573,7 +573,10 @@ int nla_client_authenticate(rdpNla* nla)
                if (status < 0)
                {
                        if (nla->errorCode)
+                       {
                                WLog_ERR(TAG, "SPNEGO failed with NTSTATUS: %08X", nla->errorCode);
+                               freerdp_set_last_error(nla->instance->context, nla->errorCode);
+                       }
 
                        Stream_Free(s, TRUE);
                        return -1;