s4-openldap: Remove use of talloc_reference in ldb_map_outbound.c
commit540dd6fa50aafa672c94085ab7b0dc85b38061b8
authorNadezhda Ivanova <nivanova@symas.com>
Wed, 18 Sep 2013 22:31:24 +0000 (18 15:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:13 +0000 (15 12:46 +0200)
tree38dd2e56d0475241ad036f064c82f2dbdbcc184c
parentcdd4ef63198b1b75e37a1ed6cc83275d5790ec64
s4-openldap: Remove use of talloc_reference in ldb_map_outbound.c

Instead of referencing the values array of the element to the new element, copy them, to
avoid use of talloc_reference and remove a warning of talloc_steal with reference.
The issue is only relevant when openldap backend is used.

Signed-off-by: Nadezhda Ivanova <nivanova@symas.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 75705776929d87f1a694582261c07d1724574370)
lib/ldb/ldb_map/ldb_map_outbound.c