From 90862a55fd9b5fadfe651320871fa293f68bc6d2 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 27 Oct 2009 19:40:57 +0100 Subject: ldb:tdb backend - be also here more careful with the result value "msg_delete_attribute" doesn't return an LDB result constant. --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib') 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; } } -- cgit