From 843be3bcd9b07ba937944aee206bd4ecdfd65504 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 7 Nov 2009 10:18:26 +0100 Subject: ldb_init: use constant for result of "ldb_setup_wellknown_attributes" --- source4/lib/ldb/common/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 732d100827..20e32064ec 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -102,7 +102,7 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx) } ret = ldb_setup_wellknown_attributes(ldb); - if (ret != 0) { + if (ret != LDB_SUCCESS) { talloc_free(ldb); return NULL; } -- cgit