From: Matthias Dieter Wallnöfer Date: Tue, 11 May 2010 20:52:55 +0000 (+0200) Subject: ldb:ldb_msg.c - use result constant X-Git-Tag: samba-3.6.0pre1~2033 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad9fd5b7120b4fe1bc4296795b5e007a85d1387;p=thirdparty%2Fsamba.git ldb:ldb_msg.c - use result constant --- diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 2d2b34dd33a..03224460339 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; }