summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/modules/ldb_map_outbound.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-25 02:06:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:39 -0500
commit151237477bef0d8fdcf926fa0fbe048580a58be5 (patch)
treea0e7ba5ef168739b4f1b191b65b19ad9d28d4275 /source3/lib/ldb/modules/ldb_map_outbound.c
parente6b56f9f0c601c740432c7040a737f679c131eb3 (diff)
downloadsamba-151237477bef0d8fdcf926fa0fbe048580a58be5.tar.gz
samba-151237477bef0d8fdcf926fa0fbe048580a58be5.tar.bz2
samba-151237477bef0d8fdcf926fa0fbe048580a58be5.zip
r19491: backport changes from samba4
(This used to be commit aa464c9fda978f615230241921f83884a60f4c6f)
Diffstat (limited to 'source3/lib/ldb/modules/ldb_map_outbound.c')
-rw-r--r--source3/lib/ldb/modules/ldb_map_outbound.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/ldb/modules/ldb_map_outbound.c b/source3/lib/ldb/modules/ldb_map_outbound.c
index cd33f29043..ff3b5c3aa2 100644
--- a/source3/lib/ldb/modules/ldb_map_outbound.c
+++ b/source3/lib/ldb/modules/ldb_map_outbound.c
@@ -192,12 +192,7 @@ static int ldb_msg_replace(struct ldb_message *msg, const struct ldb_message_ele
/* no local result, add as new element */
if (old == NULL) {
- if (ldb_msg_add_empty(msg, el->name, 0) != 0) {
- return -1;
- }
-
- old = ldb_msg_find_element(msg, el->name);
- if (old == NULL) {
+ if (ldb_msg_add_empty(msg, el->name, 0, &old) != 0) {
return -1;
}
}