ITS#6570 part #2, reject RDNs with empty values

This commit is contained in:
Howard Chu 2010-06-06 23:22:07 +00:00
parent ea138247b3
commit 007cd13010

View file

@ -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;