mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix dnValidate (leak and return SUCCESS)
This commit is contained in:
parent
3cc674589d
commit
6e88ea7108
1 changed files with 6 additions and 4 deletions
|
|
@ -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 a new issue