]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/collect.c
Tweaks for OpenSSL 1.1 API deprecations
[openldap] / servers / slapd / overlays / collect.c
index 697fc987768948c327f2e1262fe2de5c230d7f41..454b31194f1e1eafe58a35cc8b2dbad63fb8fe51 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2003-2012 The OpenLDAP Foundation.
+ * Copyright 2003-2017 The OpenLDAP Foundation.
  * Portions Copyright 2003 Howard Chu.
  * All rights reserved.
  *
@@ -401,8 +401,8 @@ collect_response( Operation *op, SlapReply *rs )
                                 * current search result
                                 */
                                if ( vals ) {
-                                       attr_merge( rs->sr_entry, ci->ci_ad[idx], 
-                                               vals, NULL );
+                                       attr_merge_normalize( rs->sr_entry, ci->ci_ad[idx],
+                                               vals, op->o_tmpmemctx );
                                        ber_bvarray_free_x( vals, op->o_tmpmemctx );
                                }
                        }