aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-04-04 12:09:39 +0200
committerYang Tse <yangsita@gmail.com>2013-04-04 12:11:29 +0200
commited35e1fa1bfd3e42f682f9e2b4e0d4025fce0260 (patch)
tree82c872bab3bc1d985f041f58105edf6313ee09b5 /lib
parente87e76e2dc108efb1cae87df496416f49c55fca0 (diff)
http_negotiate.c: follow-up for commit 3dcc1a9c
Diffstat (limited to 'lib')
-rw-r--r--lib/http_negotiate.c6
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;
}