diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-12-03 12:50:18 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-12-03 12:51:16 +0100 |
commit | 80e066112c033ce3684a4adede3f40565f68277f (patch) | |
tree | fd02afaac5b112c27dcfaae4902c1bf0b916065f /source4/dsdb | |
parent | fed6ac05d00ab9bc2d7f55fe377cd1fde829cf7f (diff) | |
download | samba-80e066112c033ce3684a4adede3f40565f68277f.tar.gz samba-80e066112c033ce3684a4adede3f40565f68277f.tar.bz2 samba-80e066112c033ce3684a4adede3f40565f68277f.zip |
s4:operational LDB module - Fix usage of LDB constants
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/operational.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index e48f91bac0..031544d6a8 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -88,7 +88,7 @@ static int construct_canonical_name(struct ldb_module *module, char *canonicalName; canonicalName = ldb_dn_canonical_string(msg, msg->dn); if (canonicalName == NULL) { - return -1; + return LDB_ERR_OPERATIONS_ERROR; } return ldb_msg_add_steal_string(msg, "canonicalName", canonicalName); } @@ -255,13 +255,13 @@ static int operational_search_post_process(struct ldb_module *module, /* construct the new attribute, using either a supplied constructor or a simple copy */ - if (search_sub[i].constructor) { - if (search_sub[i].constructor(module, msg) != 0) { + if (search_sub[i].constructor != NULL) { + if (search_sub[i].constructor(module, msg) != LDB_SUCCESS) { goto failed; } } else if (ldb_msg_copy_attr(msg, search_sub[i].replace, - search_sub[i].attr) != 0) { + search_sub[i].attr) != LDB_SUCCESS) { goto failed; } |