From 34a7c1860d4635c024153190c445358f44708118 Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Mon, 21 Mar 2016 10:23:18 +0100 Subject: [PATCH] core: Propagate credssp error code by setting last error --- libfreerdp/core/nla.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 471f1dc..4a9ed61 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -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; -- 2.7.4