]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r21853: Fix a valgrind error
authorVolker Lendecke <vlendec@samba.org>
Fri, 16 Mar 2007 13:09:09 +0000 (13:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:38 +0000 (12:18 -0500)
source/passdb/lookup_sid.c

index 3881e43bd184666d00905326a20ed039ffaa118b..cd9d8d7092a6ffd8d12d4f6547df7e315e4b6955 100644 (file)
@@ -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