From 9dab474fa4c32c55d2006fcfa60ea93371cceb5d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 28 Dec 2001 15:28:10 +0000 Subject: [PATCH] fix realloc bug --- servers/slapd/dn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index b87283fd0b..05b81146a1 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -874,6 +874,11 @@ rdn_attrs( const char * rdn, char ***types, char ***values) assert( rdn ); assert( values ); + if ( types ) { + *types = NULL; + } + *values = NULL; + rc = ldap_str2rdn( rdn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP ); if ( rc != LDAP_SUCCESS ) { return rc; -- 2.39.5