mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:47:28 +03:00
krb5_gssapi: fix memory leak on error path
If a non-compliant amount of bytes is received, the function would return error without free. Reported-by: Joshua Rogers Closes #18976
This commit is contained in:
parent
2a2a2e5d10
commit
2c6505e0ef
1 changed files with 1 additions and 0 deletions
|
|
@ -225,6 +225,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
|
|||
/* Not 4 octets long so fail as per RFC4752 Section 3.1 */
|
||||
if(output_token.length != 4) {
|
||||
infof(data, "GSSAPI handshake failure (invalid security data)");
|
||||
gss_release_buffer(&unused_status, &output_token);
|
||||
return CURLE_BAD_CONTENT_ENCODING;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue