mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
http_negotiate.c: follow-up for commit 3dcc1a9c
This commit is contained in:
parent
e87e76e2dc
commit
ed35e1fa1b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user