mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 00:14:25 -05:00
Add another safety check
This commit is contained in:
parent
9fa8eded08
commit
288f0f4f6d
1 changed files with 5 additions and 0 deletions
|
|
@ -548,6 +548,11 @@ int structural_class(
|
|||
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||
}
|
||||
|
||||
if( scn < 0 ) {
|
||||
*text = "invalid structural object class";
|
||||
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||
}
|
||||
|
||||
*scbv = ocs[scn];
|
||||
|
||||
if( scbv->bv_len == 0 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue