1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:kdc: don't leak salt in free_sdb_key()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-02-11 21:13:24 +01:00
parent 97dbdb48d8
commit ccd11c2c25

View File

@ -47,6 +47,7 @@ static void free_sdb_key(struct sdb_key *k)
if (k->salt) {
smb_krb5_free_data_contents(NULL, &k->salt->salt);
SAFE_FREE(k->salt);
}
ZERO_STRUCTP(k);