summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-11 22:52:55 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-13 17:10:27 +0200
commit9ad9fd5b7120b4fe1bc4296795b5e007a85d1387 (patch)
tree9c827455a3f4488f3f8c09148ad26ec1c5a6c761 /source4/lib/ldb
parent4da42b4e80caba436e44a7f6e6583028d0225da3 (diff)
downloadsamba-9ad9fd5b7120b4fe1bc4296795b5e007a85d1387.tar.gz
samba-9ad9fd5b7120b4fe1bc4296795b5e007a85d1387.tar.bz2
samba-9ad9fd5b7120b4fe1bc4296795b5e007a85d1387.zip
ldb:ldb_msg.c - use result constant
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c
index 2d2b34dd33..0322446033 100644
--- a/source4/lib/ldb/common/ldb_msg.c
+++ b/source4/lib/ldb/common/ldb_msg.c
@@ -160,7 +160,7 @@ int ldb_msg_add(struct ldb_message *msg,
/* We have to copy this, just in case *el is a pointer into
* what ldb_msg_add_empty() is about to realloc() */
struct ldb_message_element el_copy = *el;
- if (ldb_msg_add_empty(msg, el->name, flags, NULL) != 0) {
+ if (ldb_msg_add_empty(msg, el->name, flags, NULL) != LDB_SUCCESS) {
return LDB_ERR_OPERATIONS_ERROR;
}