Blame SOURCES/0054-Ticket-47981-COS-cache-doesn-t-properly-mark-vattr-c.patch

a2f18f
From 8d4369e6060f7c079b02fa87a0cd0d2ae0488ecd Mon Sep 17 00:00:00 2001
a2f18f
From: Noriko Hosoi <nhosoi@redhat.com>
a2f18f
Date: Wed, 2 Sep 2015 18:04:27 -0700
a2f18f
Subject: [PATCH 54/54] Ticket #47981 - COS cache doesn't properly mark vattr
a2f18f
 cache as invalid when there are multiple suffixes
a2f18f
a2f18f
Description: commit 42e2df3858a4e14706d57b5c907d1d3768f4d970 for fixing
a2f18f
icket 47981 accidentally added "break" to the while loop when a
a2f18f
condition is satisfied:
a2f18f
  if(!cos_cache_add_dn_defs(suffixVals[valIndex]->bv_val ,pDefs))
a2f18f
which skips the rest of the definitions.  This patch removes the
a2f18f
"break".
a2f18f
a2f18f
https://fedorahosted.org/389/ticket/47981
a2f18f
a2f18f
Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
a2f18f
a2f18f
(cherry picked from commit 6557b820dca7980067afc2a33184197b2d154a51)
a2f18f
(cherry picked from commit c1721f1d6e2344eefaec817ed47119c15c43fcfc)
a2f18f
---
a2f18f
 ldap/servers/plugins/cos/cos_cache.c | 1 -
a2f18f
 1 file changed, 1 deletion(-)
a2f18f
a2f18f
diff --git a/ldap/servers/plugins/cos/cos_cache.c b/ldap/servers/plugins/cos/cos_cache.c
a2f18f
index ddb85ab..e0b841d 100644
a2f18f
--- a/ldap/servers/plugins/cos/cos_cache.c
a2f18f
+++ b/ldap/servers/plugins/cos/cos_cache.c
a2f18f
@@ -647,7 +647,6 @@ static int cos_cache_build_definition_list(cosDefinitions **pDefs, int *vattr_ca
a2f18f
 									{
a2f18f
 										*vattr_cacheable = -1;
a2f18f
 										cos_def_available = 1;
a2f18f
-										break;
a2f18f
 									}
a2f18f
 								}
a2f18f
 								valIndex++;
a2f18f
-- 
a2f18f
1.9.3
a2f18f