ldb_init: use constant for result of "ldb_setup_wellknown_attributes"
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 7 Nov 2009 09:18:26 +0000 (10:18 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 7 Nov 2009 09:18:26 +0000 (10:18 +0100)
source4/lib/ldb/common/ldb.c

index 732d10082782e1bfcfbaf9512f652e3a4627b5b7..20e32064ec8c22b58c741e13b32099050636d857 100644 (file)
@@ -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;
        }