mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r13190: Fix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
access free'd memory. Jerry please pick up for 3.0.21b ! Jeremy.
This commit is contained in:
parent
d45cc5e4f3
commit
c0ba64297a
@ -299,7 +299,6 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
|
||||
*pass_last_set_time = pass->mod_time;
|
||||
}
|
||||
memcpy(ret_pwd, pass->hash, 16);
|
||||
SAFE_FREE(pass);
|
||||
|
||||
if (channel) {
|
||||
*channel = get_default_sec_channel();
|
||||
@ -313,6 +312,7 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
|
||||
}
|
||||
}
|
||||
|
||||
SAFE_FREE(pass);
|
||||
return True;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user