diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-24 23:59:59 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-25 00:01:05 +0200 |
commit | b0a95ad2f68cfc87822420c22216d83c0abf0690 (patch) | |
tree | 8ac863eafe2c9bc1109404b975ad0f5be8b22154 /source4/lib/ldb/common/ldb_modules.c | |
parent | 31e10643c998e64c0ec432553ac9193d978e43f4 (diff) | |
download | samba-b0a95ad2f68cfc87822420c22216d83c0abf0690.tar.gz samba-b0a95ad2f68cfc87822420c22216d83c0abf0690.tar.bz2 samba-b0a95ad2f68cfc87822420c22216d83c0abf0690.zip |
Revert LDB return code patches from Matthias.
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 046d36edf1..c0cd616a76 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -279,16 +279,16 @@ int ldb_register_module(const struct ldb_module_ops *ops) struct ops_list_entry *entry = talloc(talloc_autofree_context(), struct ops_list_entry); if (ldb_find_module_ops(ops->name) != NULL) - return LDB_ERR_OPERATIONS_ERROR; + return -1; if (entry == NULL) - return LDB_ERR_OPERATIONS_ERROR; + return -1; entry->ops = ops; entry->next = registered_modules; registered_modules = entry; - return LDB_SUCCESS; + return 0; } void *ldb_dso_load_symbol(struct ldb_context *ldb, const char *name, |