mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Add another safety check
This commit is contained in:
parent
9fa8eded08
commit
288f0f4f6d
@ -548,6 +548,11 @@ int structural_class(
|
|||||||
return LDAP_OBJECT_CLASS_VIOLATION;
|
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( scn < 0 ) {
|
||||||
|
*text = "invalid structural object class";
|
||||||
|
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||||
|
}
|
||||||
|
|
||||||
*scbv = ocs[scn];
|
*scbv = ocs[scn];
|
||||||
|
|
||||||
if( scbv->bv_len == 0 ) {
|
if( scbv->bv_len == 0 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user