From: Pierangelo Masarati Date: Fri, 28 Dec 2001 15:28:10 +0000 (+0000) Subject: fix realloc bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9dab474fa4c32c55d2006fcfa60ea93371cceb5d;p=openldap fix realloc bug --- 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;