r504: fixed a bad call to list_union()
authorAndrew Tridgell <tridge@samba.org>
Thu, 6 May 2004 04:45:29 +0000 (04:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:51:45 +0000 (12:51 -0500)
(This used to be commit 4404056cd5fd65d72a38ea474fe330281b3ee19e)

source4/lib/ldb/ldb_tdb/ldb_index.c

index 07077281ced9a3e6a368c2d2378a8984f47b84d3..877955a9b79f6779a8a207213d441a7d113614f9 100644 (file)
@@ -188,7 +188,8 @@ static int ltdb_index_dn_objectclass(struct ldb_context *ldb,
        int i;
        int ret;
        const char *target = tree->u.simple.value.data;
-       static int list_union(struct dn_list *, const struct dn_list *);
+       static int list_union(struct ldb_context *, 
+                             struct dn_list *, const struct dn_list *);
 
        list->count = 0;
        list->dn = NULL;
@@ -214,7 +215,7 @@ static int ltdb_index_dn_objectclass(struct ldb_context *ldb,
                                                *list = list2;
                                                ret = 1;
                                        } else {
-                                               list_union(list, &list2);
+                                               list_union(ldb, list, &list2);
                                                dn_list_free(ldb, &list2);
                                        }
                                }