mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
fix dnValidate (leak and return SUCCESS)
This commit is contained in:
parent
3cc674589d
commit
6e88ea7108
@ -132,11 +132,13 @@ dnValidate(
|
||||
* Schema-aware validate
|
||||
*/
|
||||
rc = LDAPDN_validate( dn );
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
ldap_dnfree( dn );
|
||||
ldap_dnfree( dn );
|
||||
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user