Unverified Commit 1f152a42 authored by Isaac Boukris's avatar Isaac Boukris Committed by Marcel Raad
Browse files

sspi: print out InitializeSecurityContext() error message

Reported-by: Carsten (talksinmath)

Fixes #1384
Closes #1395
parent aa2e9e90
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,7 @@
#include "warnless.h"
#include "warnless.h"
#include "curl_multibyte.h"
#include "curl_multibyte.h"
#include "sendf.h"
#include "sendf.h"
#include "strerror.h"


/* The last #include files should be: */
/* The last #include files should be: */
#include "curl_memory.h"
#include "curl_memory.h"
@@ -224,6 +225,8 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
  free(chlg);
  free(chlg);


  if(GSS_ERROR(nego->status)) {
  if(GSS_ERROR(nego->status)) {
    failf(data, "InitializeSecurityContext failed: %s",
          Curl_sspi_strerror(data->easy_conn, nego->status));
    return CURLE_OUT_OF_MEMORY;
    return CURLE_OUT_OF_MEMORY;
  }
  }