git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da42b4
)
ldb:ldb_msg.c - use result constant
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Tue, 11 May 2010 20:52:55 +0000
(22:52 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 13 May 2010 15:10:27 +0000
(17:10 +0200)
source4/lib/ldb/common/ldb_msg.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_msg.c
b/source4/lib/ldb/common/ldb_msg.c
index 2d2b34dd33ae5154ccd8aeaa957b93e123a2f167..0322446033951ecc6a39b404e81a1fd04825774d 100644
(file)
--- 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;
}