From c0d74d11bc205b4fef80f8faa81df2dee5613368 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 6 Dec 2006 11:45:33 +0000 Subject: r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string (This used to be commit f64866a43fbc21666e919cafdf3002a8e43c60af) --- source3/lib/ldb/ldb_tdb/ldb_index.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source3') diff --git a/source3/lib/ldb/ldb_tdb/ldb_index.c b/source3/lib/ldb/ldb_tdb/ldb_index.c index c9a5dc9b05..e84dac3f90 100644 --- a/source3/lib/ldb/ldb_tdb/ldb_index.c +++ b/source3/lib/ldb/ldb_tdb/ldb_index.c @@ -296,9 +296,6 @@ static int ltdb_index_dn_objectclass(struct ldb_module *module, struct dn_list *list2; tree2.operation = LDB_OP_EQUALITY; tree2.u.equality.attr = LTDB_OBJECTCLASS; - if (!tree2.u.equality.attr) { - return -1; - } tree2.u.equality.value.data = (uint8_t *)talloc_strdup(list, subclasses[i]); if (tree2.u.equality.value.data == NULL) { -- cgit