]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10481 Do not leak data on error path
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 31 Mar 2026 16:37:34 +0000 (17:37 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 10 Apr 2026 03:15:42 +0000 (03:15 +0000)
servers/slapd/bconfig.c

index 444ac67f9296564be234ba54f27ab6e303892de9..986be859318cb7ef05427b8aeb44209f457a867c 100644 (file)
@@ -5509,7 +5509,8 @@ config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs,
                        Debug( LDAP_DEBUG_TRACE, "%s: config_add_internal: "
                                "DN=\"%s\" no structural objectClass add function\n",
                                log_prefix, e->e_name.bv_val );
-                       return LDAP_OBJECT_CLASS_VIOLATION;
+                       rc = LDAP_OBJECT_CLASS_VIOLATION;
+                       goto done_noop;
                }
        }