diff options
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.c | 4 |
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; } } |