]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#1572, check for NULL objectClass in is_entry_objectclass
authorHoward Chu <hyc@openldap.org>
Thu, 31 Jan 2002 14:10:19 +0000 (14:10 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 31 Jan 2002 14:10:19 +0000 (14:10 +0000)
servers/slapd/oc.c

index 3a4c48d2c5940a28bfcb485a84f7a7f4f5f1aabf..11a143e95801f88966cffc422a995eb3046bd7e9 100644 (file)
@@ -92,8 +92,10 @@ int is_entry_objectclass(
                if ( objectClass == oc && !set_flags ) {
                        return 1;
                }
-
-               e->e_ocflags |= objectClass->soc_flags;
+               
+               if ( objectClass != NULL ) {
+                       e->e_ocflags |= objectClass->soc_flags;
+               }
        }
        e->e_ocflags |= SLAP_OC__END;   /* We've finished this */