Description: Fix coverity issue 12948 & 12949 (NULL pointer dereference) https://fedorahosted.org/389/ticket/47969 Reviewed by: mreynolds
@@ -1863,9 +1863,9 @@ static void cos_cache_del_schema(cosCache *pCache)
cos_cache_del_attrval_list(&(pCache->ppAttrIndex[attr_index]->pObjectclasses));
}
+ /* Finally, remove the first attribute's objectclass list */
+ cos_cache_del_attrval_list(&(pCache->ppAttrIndex[0]->pObjectclasses));
- /* Finally, remove the first attribute's objectclass list */
- cos_cache_del_attrval_list(&(pCache->ppAttrIndex[0]->pObjectclasses));
LDAPDebug( LDAP_DEBUG_TRACE, "<-- cos_cache_del_schema\n",0,0,0);