From 3f6e08db6077a5c204bcfb35b9de634a7711f065 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 16 Mar 2007 13:09:09 +0000 Subject: r21853: Fix a valgrind error (This used to be commit d0d16cc55ab830dcfd4f8c6c7bf64d2b9b6dd55b) --- source3/passdb/lookup_sid.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/passdb') 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 -- cgit