From: Martin Fleisz Date: Mon, 21 Mar 2016 09:23:18 +0000 (+0100) Subject: core: Propagate credssp error code by setting last error X-Git-Tag: 2.0.0-beta1+android10~239^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34a7c1860d4635c024153190c445358f44708118;p=platform%2Fupstream%2Ffreerdp.git core: Propagate credssp error code by setting last error --- 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;