summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@altlinux.org>2008-01-14 21:32:59 +0300
committerAlexander Bokovoy <ab@altlinux.org>2008-01-14 21:32:59 +0300
commit978eb313448fe9612db5491385a91dd3b67d0e97 (patch)
treecedafc5a9d1a44a217668c061ea5507b62aa1b1a
parent36a7316bfc9d7582ccd908f2b9d96e0fe983e884 (diff)
downloadsamba-978eb313448fe9612db5491385a91dd3b67d0e97.tar.gz
samba-978eb313448fe9612db5491385a91dd3b67d0e97.tar.bz2
samba-978eb313448fe9612db5491385a91dd3b67d0e97.zip
Fix crash in winbind clients: instead of talloc-based pointer we passed address of a local variable.
(This used to be commit 0afd2153c7649e89d595cb7eff0f7b3c0b56ea15)
-rw-r--r--source3/lib/winbind_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/winbind_util.c b/source3/lib/winbind_util.c
index 3cf068a6e0..14356b09cf 100644
--- a/source3/lib/winbind_util.c
+++ b/source3/lib/winbind_util.c
@@ -201,7 +201,7 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx,
*types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids);
for(i=0; i<num_rids; i++) {
- (*names)[i] = talloc_strdup(names, namelist[i]);
+ (*names)[i] = talloc_strdup(*names, namelist[i]);
(*types)[i] = (enum lsa_SidType)name_types[i];
}