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:
parent
97dbdb48d8
commit
ccd11c2c25
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user