Fix crash in winbind clients: instead of talloc-based pointer we passed address of...
authorAlexander Bokovoy <ab@altlinux.org>
Mon, 14 Jan 2008 18:32:59 +0000 (21:32 +0300)
committerGerald (Jerry) Carter <jerry@samba.org>
Mon, 14 Jan 2008 19:03:49 +0000 (13:03 -0600)
source/lib/winbind_util.c

index 3cf068a6e0da11d812a89c4f3954ce066f960e90..14356b09cf7b9d22b88621d871062d18856a12d0 100644 (file)
@@ -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];
        }