From ed35e1fa1bfd3e42f682f9e2b4e0d4025fce0260 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 4 Apr 2013 12:09:39 +0200 Subject: http_negotiate.c: follow-up for commit 3dcc1a9c --- lib/http_negotiate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3