]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9076 Set oldctrls correctly
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 10 Sep 2019 17:59:17 +0000 (18:59 +0100)
committerOndřej Kuzník <ondra@mistotebe.net>
Tue, 10 Sep 2019 18:00:24 +0000 (19:00 +0100)
servers/slapd/back-ldap/extended.c

index ab9ddb8a6fe50476f1b9a7883011c25eed941916..1fe65d3420ca4e3bbf4897ce49417fba8328da4d 100644 (file)
@@ -58,7 +58,7 @@ ldap_back_extended_one( Operation *op, SlapReply *rs, ldap_back_exop_f exop )
                return -1;
        }
 
-       ctrls = op->o_ctrls;
+       ctrls = oldctrls = op->o_ctrls;
        if ( ldap_back_controls_add( op, rs, lc, &ctrls ) )
        {
                op->o_ctrls = oldctrls;