]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10304 slapd-mdb: fix spurious error when deleting last child of a branch
authorHoward Chu <hyc@openldap.org>
Tue, 5 Aug 2025 15:26:23 +0000 (16:26 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 5 Aug 2025 15:26:23 +0000 (16:26 +0100)
servers/slapd/back-mdb/delete.c

index f1d2be9e513acefcbc6f1b23c1c3fa067127a7fa..8c62b786dfe080e1b1868ed408e43a8adaf3624c 100644 (file)
@@ -357,6 +357,7 @@ mdb_delete( Operation *op, SlapReply *rs )
                        }
                        parent_is_leaf = 1;
                }
+               rs->sr_err = LDAP_SUCCESS;
                mdb_entry_return( op, p );
                p = NULL;
        }