Skip to content
Snippets Groups Projects
Commit 288f0f4f authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add another safety check

parent 9fa8eded
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment