1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

ntlm_auth: Fix Coverity ID 240749 Resource leak

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2024-11-14 21:03:02 +01:00 committed by Ralph Boehme
parent f6efb5a653
commit 9900bb4555

View File

@ -200,7 +200,7 @@ static bool test_ntlm_in_lm(bool lanman_support_expected)
uchar lm_hash[16];
uchar user_session_key[16];
DATA_BLOB chall = get_challenge();
char *error_string;
char *error_string = NULL;
ZERO_STRUCT(user_session_key);
@ -231,6 +231,7 @@ static bool test_ntlm_in_lm(bool lanman_support_expected)
SAFE_FREE(error_string);
return False;
}
SAFE_FREE(error_string);
/* If we are told the DC is Samba4, expect an LM key of zeros */
if (!lanman_support_expected) {