mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
ITS#6570 part #2, reject RDNs with empty values
This commit is contained in:
parent
ea138247b3
commit
007cd13010
1 changed files with 4 additions and 0 deletions
|
|
@ -379,6 +379,10 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
|
|||
ava->la_value = bv;
|
||||
ava->la_flags |= LDAP_AVA_FREE_VALUE;
|
||||
}
|
||||
/* reject empty values */
|
||||
if (!ava->la_value.bv_len) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
}
|
||||
rc = LDAP_SUCCESS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue