|
|
dc8c34 |
From 2cfe56f39c2e9892eb4f1372af9195449889dd17 Mon Sep 17 00:00:00 2001
|
|
|
dc8c34 |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
dc8c34 |
Date: Mon, 8 Dec 2014 09:57:50 -0500
|
|
|
dc8c34 |
Subject: [PATCH 280/305] Ticket 47969 - Fix coverity issue
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Description: Fix coverity issue 12948 & 12949 (NULL pointer dereference)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
https://fedorahosted.org/389/ticket/47969
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Reviewed by: mreynolds
|
|
|
dc8c34 |
|
|
|
dc8c34 |
(cherry picked from commit 1553b665bfecbbccd54c439442d9a22c5d35d4a1)
|
|
|
dc8c34 |
(cherry picked from commit ea01c960f0f32bead97fc3615c73f2cc3c4faba8)
|
|
|
dc8c34 |
---
|
|
|
dc8c34 |
ldap/servers/plugins/cos/cos_cache.c | 4 ++--
|
|
|
dc8c34 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
diff --git a/ldap/servers/plugins/cos/cos_cache.c b/ldap/servers/plugins/cos/cos_cache.c
|
|
|
dc8c34 |
index db34d15..10f475e 100644
|
|
|
dc8c34 |
--- a/ldap/servers/plugins/cos/cos_cache.c
|
|
|
dc8c34 |
+++ b/ldap/servers/plugins/cos/cos_cache.c
|
|
|
dc8c34 |
@@ -1906,9 +1906,9 @@ static void cos_cache_del_schema(cosCache *pCache)
|
|
|
dc8c34 |
cos_cache_del_attrval_list(&(pCache->ppAttrIndex[attr_index]->pObjectclasses));
|
|
|
dc8c34 |
}
|
|
|
dc8c34 |
}
|
|
|
dc8c34 |
+ /* Finally, remove the first attribute's objectclass list */
|
|
|
dc8c34 |
+ cos_cache_del_attrval_list(&(pCache->ppAttrIndex[0]->pObjectclasses));
|
|
|
dc8c34 |
}
|
|
|
dc8c34 |
- /* Finally, remove the first attribute's objectclass list */
|
|
|
dc8c34 |
- cos_cache_del_attrval_list(&(pCache->ppAttrIndex[0]->pObjectclasses));
|
|
|
dc8c34 |
|
|
|
dc8c34 |
LDAPDebug( LDAP_DEBUG_TRACE, "<-- cos_cache_del_schema\n",0,0,0);
|
|
|
dc8c34 |
}
|
|
|
dc8c34 |
--
|
|
|
dc8c34 |
1.9.3
|
|
|
dc8c34 |
|