mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix realloc bug
This commit is contained in:
parent
cd8eb327d6
commit
9dab474fa4
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue