From: Pierangelo Masarati Date: Mon, 17 Jan 2005 21:06:49 +0000 (+0000) Subject: remove dangling text pointer in case of success X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~359 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=143937320b4252f71facec36fb63a68c0ad23b90;p=openldap remove dangling text pointer in case of success --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index e994b29d93..204caa0380 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -583,6 +583,8 @@ slap_mods2entry( tail = &attr->a_next; } + *text = NULL; + return LDAP_SUCCESS; } diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index 30175b126c..d765934758 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -684,6 +684,8 @@ int structural_class( return LDAP_OBJECT_CLASS_VIOLATION; } + *text = NULL; + return LDAP_SUCCESS; }