X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Foc.c;h=2dbe6fc285ea9e439fe1572c84bd159a2764c51a;hb=1c1b5ca0c4cc7da98beff036c0ab54042fe63899;hp=5c4f6a984f610cac04acc66c90dc7f1f87cb2e29;hpb=e76299c196bb93fd2e3ca7972260aa55f9c1a796;p=openldap diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 5c4f6a984f..2dbe6fc285 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2011 The OpenLDAP Foundation. + * Copyright 1998-2012 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -400,6 +400,8 @@ oc_delete_names( ObjectClass *oc ) { char **names = oc->soc_names; + if (!names) return; + while (*names) { struct oindexrec tmpoir, *oir;