ITS#10344 Ensure the first argument passed to ber_dupbv_x is not NULL.

This commit is contained in:
jinyaoguo 2025-05-27 22:01:25 -04:00 committed by Quanah Gibson-Mount
parent 76e1492809
commit f00339df9e
2 changed files with 2 additions and 1 deletions

View file

@ -6159,7 +6159,7 @@ firstComponentNormalize(
struct berval comp;
ber_len_t len;
if( SLAP_MR_IS_VALUE_OF_ASSERTION_SYNTAX( usage )) {
if( normalized && SLAP_MR_IS_VALUE_OF_ASSERTION_SYNTAX( usage )) {
ber_dupbv_x( normalized, val, ctx );
return LDAP_SUCCESS;
}

View file

@ -91,6 +91,7 @@ static int objectClassPretty(
void *ctx )
{
ObjectClass *oc;
assert( out != NULL );
if( oidValidate( NULL, in )) return LDAP_INVALID_SYNTAX;