]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10182 slapo-alias: check for static operational attrs too
authorHoward Chu <hyc@openldap.org>
Fri, 23 Feb 2024 16:02:54 +0000 (16:02 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Apr 2024 20:08:10 +0000 (20:08 +0000)
contrib/slapd-modules/alias/alias.c

index 5d74aaab9f50764865fadd3a9c36c9d761e14f3e..c5707ff5440a52c3796f262e5e49481d2db36952 100644 (file)
@@ -238,7 +238,9 @@ alias_response( Operation *op, SlapReply *rs )
 
                if ( operational ) {
                        source = attr_find( rs->sr_operational_attrs, mapping->source );
-               } else {
+               }
+               if ( !source ) {
+                       operational = 0;
                        source = attr_find( e_orig->e_attrs, mapping->source );
                }
                if ( !source )