mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix realloc bug
This commit is contained in:
parent
cd8eb327d6
commit
9dab474fa4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user