diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-03-16 13:09:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:38 -0500 |
commit | 3f6e08db6077a5c204bcfb35b9de634a7711f065 (patch) | |
tree | 7ebda002249ab9e8fcbb659b4b67aae757da4685 /source3/passdb | |
parent | d873858976a2ce70cfa9c790a083ae4fb0ff6b02 (diff) | |
download | samba-3f6e08db6077a5c204bcfb35b9de634a7711f065.tar.gz samba-3f6e08db6077a5c204bcfb35b9de634a7711f065.tar.bz2 samba-3f6e08db6077a5c204bcfb35b9de634a7711f065.zip |
r21853: Fix a valgrind error
(This used to be commit d0d16cc55ab830dcfd4f8c6c7bf64d2b9b6dd55b)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/lookup_sid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 3881e43bd1..cd9d8d7092 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -414,6 +414,11 @@ static BOOL wb_lookup_rids(TALLOC_CTX *mem_ctx, return True; } + if (!(*domain_name = talloc_strdup(mem_ctx, *domain_name))) { + TALLOC_FREE(tmp_ctx); + return False; + } + /* * winbind_lookup_rids allocates its own array. We've been given the * array, so copy it over |