From 143937320b4252f71facec36fb63a68c0ad23b90 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 17 Jan 2005 21:06:49 +0000 Subject: [PATCH] remove dangling text pointer in case of success --- servers/slapd/add.c | 2 ++ servers/slapd/schema_check.c | 2 ++ 2 files changed, 4 insertions(+) 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; } -- 2.39.5