mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 12:30:29 -05:00
ITS#10344 Ensure the first argument passed to ber_dupbv_x is not NULL.
This commit is contained in:
parent
76e1492809
commit
f00339df9e
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ static int objectClassPretty(
|
|||
void *ctx )
|
||||
{
|
||||
ObjectClass *oc;
|
||||
assert( out != NULL );
|
||||
|
||||
if( oidValidate( NULL, in )) return LDAP_INVALID_SYNTAX;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue