Forráskód Böngészése

Ticket 47969 - Fix coverity issue

Description: Fix coverity issue 12948 & 12949 (NULL pointer dereference)

https://fedorahosted.org/389/ticket/47969

Reviewed by: mreynolds
Mark Reynolds 11 éve
szülő
commit
1553b665bf
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      ldap/servers/plugins/cos/cos_cache.c

+ 2 - 2
ldap/servers/plugins/cos/cos_cache.c

@@ -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);
 }