Commit bdb0d459 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9384 remove assert in obsolete csnNormalize23()

parent a3e93e5f
......@@ -5327,8 +5327,8 @@ csnNormalize23(
}
*ptr = '\0';
assert( ptr == &bv.bv_val[bv.bv_len] );
if ( csnValidate( syntax, &bv ) != LDAP_SUCCESS ) {
if ( ptr != &bv.bv_val[bv.bv_len] ||
csnValidate( syntax, &bv ) != LDAP_SUCCESS ) {
return LDAP_INVALID_SYNTAX;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment