diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_negotiate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 1374af855..052fd1951 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -333,13 +333,15 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy) &encoded, &len); if(error) { gss_release_buffer(&discard_st, &neg_ctx->output_token); - neg_ctx->output_token = GSS_C_EMPTY_BUFFER; + neg_ctx->output_token.value = NULL; + neg_ctx->output_token.length = 0; return error; } if(!encoded || !len) { gss_release_buffer(&discard_st, &neg_ctx->output_token); - neg_ctx->output_token = GSS_C_EMPTY_BUFFER; + neg_ctx->output_token.value = NULL; + neg_ctx->output_token.length = 0; return CURLE_REMOTE_ACCESS_DENIED; } |