summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-18 18:00:59 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-18 18:15:55 +0200
commit9d097fa0e0ccb558a55f65376fedeb041c4d57ac (patch)
tree836d5350da3ac0faed7c67108a738b93c76d736d /source4
parent718d2801d6bafedfe91d7b475294d69e2d6a77a4 (diff)
downloadsamba-9d097fa0e0ccb558a55f65376fedeb041c4d57ac.tar.gz
samba-9d097fa0e0ccb558a55f65376fedeb041c4d57ac.tar.bz2
samba-9d097fa0e0ccb558a55f65376fedeb041c4d57ac.zip
Revert "s4:ldb_msg - Use LDB constants on results"
This reverts commit 56a8baff3df6a5120b6c7bbca771dfb7c6934fd5. Simo pointed out that I was wrong here.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c
index 09173253d0..bf607fd4e6 100644
--- a/source4/lib/ldb/common/ldb_msg.c
+++ b/source4/lib/ldb/common/ldb_msg.c
@@ -897,15 +897,16 @@ int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *na
el = ldb_msg_find_element(msg, name);
if (el == NULL) {
- return LDB_SUCCESS;
+ return 0;
}
val.data = discard_const_p(uint8_t, value);
val.length = strlen(value);
if (ldb_msg_find_val(el, &val)) {
- return LDB_ERR_OPERATIONS_ERROR;
+ return 1;
}
- return LDB_SUCCESS;
+ return 0;
}
+