dnValidate needs to check for embedded NULs.

This commit is contained in:
Kurt Zeilenga 2002-02-13 09:20:07 +00:00
parent f1cc2b7ab2
commit 7c962f3dd4

View file

@ -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 );
/*