Blame SOURCES/freeradius-Handle-connection-error-in-rlm_ldap_cacheable_groupo.patch

5fa452
From bd67f9fc09690f0b3ac195cb9c57d51bd7a7dc23 Mon Sep 17 00:00:00 2001
5fa452
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
5fa452
Date: Wed, 29 Mar 2017 10:43:14 +0300
5fa452
Subject: [PATCH] Handle connection error in rlm_ldap_cacheable_groupobj
5fa452
5fa452
Closes #1951
5fa452
5fa452
(cherry picked from commit 208681c80e1149de888affdb87f34de0c371db50)
5fa452
---
5fa452
 src/modules/rlm_ldap/groups.c | 2 ++
5fa452
 1 file changed, 2 insertions(+)
5fa452
5fa452
diff --git a/src/modules/rlm_ldap/groups.c b/src/modules/rlm_ldap/groups.c
5fa452
index 12f34da2a..5e0a1819e 100644
5fa452
--- a/src/modules/rlm_ldap/groups.c
5fa452
+++ b/src/modules/rlm_ldap/groups.c
5fa452
@@ -461,8 +461,10 @@ rlm_rcode_t rlm_ldap_cacheable_groupobj(rlm_ldap_t const *inst, REQUEST *request
5fa452
 
5fa452
 	case LDAP_PROC_NO_RESULT:
5fa452
 		RDEBUG2("No cacheable group memberships found in group objects");
5fa452
+		goto finish;
5fa452
 
5fa452
 	default:
5fa452
+		rcode = RLM_MODULE_FAIL;
5fa452
 		goto finish;
5fa452
 	}
5fa452
 
5fa452
-- 
5fa452
2.11.0
5fa452