git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
559cd9e
)
Fix a valgrind error
author
Volker Lendecke
<vl@samba.org>
Tue, 25 Mar 2008 21:35:20 +0000
(22:35 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 25 Mar 2008 22:36:13 +0000
(23:36 +0100)
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.
source/libsmb/samlogon_cache.c
patch
|
blob
|
history
diff --git
a/source/libsmb/samlogon_cache.c
b/source/libsmb/samlogon_cache.c
index 73b570c38342fe7f7983aa994fa36f297bbde9f4..235880910cdaca423de4a261d73674fb3ecb0988 100644
(file)
--- 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;