mirror of https://github.com/moparisthebest/curl
spnego_sspi: fix memory leak in case *outlen is zero (#970)
This commit is contained in:
parent
2497c42172
commit
0796a99317
|
@ -265,8 +265,10 @@ CURLcode Curl_auth_create_spnego_message(struct Curl_easy *data,
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
if(!*outptr || !*outlen)
|
||||
if(!*outptr || !*outlen) {
|
||||
free(*outptr);
|
||||
return CURLE_REMOTE_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue