sspi: print out InitializeSecurityContext() error message

Reported-by: Carsten (talksinmath)

Fixes #1384
Closes #1395
This commit is contained in:
Isaac Boukris 2017-04-06 22:31:45 +03:00 committed by Marcel Raad
parent aa2e9e9017
commit 1f152a42ae
No known key found for this signature in database
GPG Key ID: B7F13D981BBF1607
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "warnless.h"
#include "curl_multibyte.h"
#include "sendf.h"
#include "strerror.h"
/* The last #include files should be: */
#include "curl_memory.h"
@ -224,6 +225,8 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
free(chlg);
if(GSS_ERROR(nego->status)) {
failf(data, "InitializeSecurityContext failed: %s",
Curl_sspi_strerror(data->easy_conn, nego->status));
return CURLE_OUT_OF_MEMORY;
}