mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
dnValidate needs to check for embedded NULs.
This commit is contained in:
parent
f1cc2b7ab2
commit
7c962f3dd4
1 changed files with 5 additions and 0 deletions
|
|
@ -116,6 +116,11 @@ dnValidate(
|
|||
return( LDAP_SUCCESS );
|
||||
}
|
||||
|
||||
/* FIXME: str2dn should take a bv and handle this */
|
||||
if( strlen( val->bv_val ) != val->bv_len ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
|
||||
rc = ldap_str2dn( in->bv_val, &dn, LDAP_DN_FORMAT_LDAP );
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue