]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10467 Make sure source is always set
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 19 Mar 2026 14:24:21 +0000 (14:24 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 20 Mar 2026 04:45:19 +0000 (04:45 +0000)
contrib/slapd-modules/alias/alias.c

index ec818d8eaacc65d249173fc573ec684431434922..b891021b02d2fbf7976b4e1580ef5cd28e04b74d 100644 (file)
@@ -220,7 +220,7 @@ alias_response( Operation *op, SlapReply *rs )
        }
 
        for ( mapping = ov->mappings; mapping && mapping->source; mapping++ ) {
-               Attribute *source, *a;
+               Attribute *source = NULL, *a;
                int operational = is_at_operational( mapping->source->ad_type ),
                        keep_source = 0;
                slap_mask_t requested = operational ?