]> git.sur5r.net Git - openldap/commitdiff
remove dangling text pointer in case of success
authorPierangelo Masarati <ando@openldap.org>
Mon, 17 Jan 2005 21:06:49 +0000 (21:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 17 Jan 2005 21:06:49 +0000 (21:06 +0000)
servers/slapd/add.c
servers/slapd/schema_check.c

index e994b29d93b65697e18e1e890023a178c2d1d868..204caa0380237e391c63363ec61d7298468ab519 100644 (file)
@@ -583,6 +583,8 @@ slap_mods2entry(
                tail = &attr->a_next;
        }
 
+       *text = NULL;
+
        return LDAP_SUCCESS;
 }
 
index 30175b126c13fcc61b2e939069e1859d21075d16..d76593475873fb1d3815261825f904dc93bae520 100644 (file)
@@ -684,6 +684,8 @@ int structural_class(
                return LDAP_OBJECT_CLASS_VIOLATION;
        }
 
+       *text = NULL;
+
        return LDAP_SUCCESS;
 }