-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
Description
I've fixed a 1 byte memory leak with Curl_override_sspi_http_realm in curl_sasl_sspi.c on line 297. Without being intimately involved in the project I don't want to check it in.
Here is the fix:
CURLcode Curl_override_sspi_http_realm(const char *chlg,
SEC_WINNT_AUTH_IDENTITY *identity)
{
xcharp_u domain, dup_domain;
/* If domain is blank or unset, check challenge message for realm */
if(!identity->Domain || !identity->DomainLength) {
// --------------------- ADDED BELOW -----------------------------
if( identity->Domain )
{
// free the domain due to strdup
free(identity->Domain);
identity->Domain = NULL;
}