1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

Fix a valgrind error

In winbind, we're using the info3 struct to send it to the winbind client after
netsamlogon_cache_store. Without this info3->base.account_name.string was
prematurely freed.
This commit is contained in:
Volker Lendecke
2008-03-25 22:35:20 +01:00
committed by Günther Deschner
parent 559cd9e5a7
commit aa4377561b

View File

@ -149,7 +149,7 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
/* so we fill it in since winbindd_getpwnam() makes use of it */
if (!info3->base.account_name.string) {
info3->base.account_name.string = talloc_strdup(mem_ctx, username);
info3->base.account_name.string = talloc_strdup(info3, username);
}
r.timestamp = t;