diff options
author | Simo Sorce <idra@samba.org> | 2006-10-25 02:06:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:39 -0500 |
commit | 151237477bef0d8fdcf926fa0fbe048580a58be5 (patch) | |
tree | a0e7ba5ef168739b4f1b191b65b19ad9d28d4275 /source3/lib/ldb/modules/ldb_map_outbound.c | |
parent | e6b56f9f0c601c740432c7040a737f679c131eb3 (diff) | |
download | samba-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.c | 7 |
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; } } |