]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10458 Reuse attribute values in aliased attributes
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 9 Mar 2026 12:11:30 +0000 (12:11 +0000)
committerOndřej Kuzník <ondra@mistotebe.net>
Thu, 19 Mar 2026 07:56:41 +0000 (07:56 +0000)
contrib/slapd-modules/alias/alias.c

index 6ba2e37cf20797b12b9b3298a90147b29a727f95..ec818d8eaacc65d249173fc573ec684431434922 100644 (file)
@@ -252,7 +252,7 @@ alias_response( Operation *op, SlapReply *rs )
                        } else {
                                Attribute **ap;
 
-                               a = attr_dup( source );
+                               a = attr_dup2( source, SLAP_ATTR_DONT_FREE_DATA );
                                a->a_desc = mapping->alias;
 
                                for ( ap = &rs->sr_operational_attrs; *ap; ap=&(*ap)->a_next );