diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-25 22:35:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-25 23:36:13 +0100 |
commit | aa4377561b691e2c5108c18aeb34fff39d8775df (patch) | |
tree | a8727fbc7b3d2b28d7ec9cd314d95b211ead7d91 | |
parent | 559cd9e5a7fac3ce3769d457132cdcb28569b93d (diff) | |
download | samba-aa4377561b691e2c5108c18aeb34fff39d8775df.tar.gz |
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.
-rw-r--r-- | source/libsmb/samlogon_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/samlogon_cache.c b/source/libsmb/samlogon_cache.c index 73b570c3834..235880910cd 100644 --- a/source/libsmb/samlogon_cache.c +++ b/source/libsmb/samlogon_cache.c @@ -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; |