summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-27 19:40:57 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-27 19:42:12 +0100
commit90862a55fd9b5fadfe651320871fa293f68bc6d2 (patch)
tree9412bef7055f4c54becb842cae00c678b4dcfd28
parent4c79fbfbe57d56e9795e85537f00dd023eec78d4 (diff)
downloadsamba-90862a55fd9b5fadfe651320871fa293f68bc6d2.tar.gz
samba-90862a55fd9b5fadfe651320871fa293f68bc6d2.tar.bz2
samba-90862a55fd9b5fadfe651320871fa293f68bc6d2.zip
ldb:tdb backend - be also here more careful with the result value
"msg_delete_attribute" doesn't return an LDB result constant.
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index f1364d5875..0a77df75a7 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -756,8 +756,8 @@ int ltdb_modify_internal(struct ldb_module *module,
}
/* Delete the attribute if it exists in the DB */
- ret = msg_delete_attribute(module, ldb, msg2, el->name);
- if (ret != LDB_SUCCESS) {
+ if (msg_delete_attribute(module, ldb, msg2, el->name) != 0) {
+ ret = LDB_ERR_OTHER;
goto done;
}
}