]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10080 Fix slapcat when gluing is on
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 9 Nov 2023 11:13:46 +0000 (11:13 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 11 Jan 2024 18:02:01 +0000 (18:02 +0000)
servers/slapd/backglue.c

index bc2dbf55eab76402df373224bc163eabf4405950..a0d4dad60dee4498eec9ee7e353c07c140380f40 100644 (file)
@@ -956,7 +956,9 @@ glue_entry_release_rw (
        BackendDB *b0 = op->o_bd;
        int rc = -1;
 
-       if ( ge ) {
+       if ( glueBack ) {
+               op->o_bd = glueBack;
+       } else if ( ge ) {
                assert( ge->ge_bi != NULL );
                if ( ge->ge_be )
                        op->o_bd = ge->ge_be;