Skip to content

Commit

Permalink
http_negotiate.c: follow-up for commit 3dcc1a9
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Apr 4, 2013
1 parent e87e76e commit ed35e1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/http_negotiate.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit ed35e1f

Please sign in to comment.