From a9d4e59e86d7d4502b714c407a37418799f85005 Mon Sep 17 00:00:00 2001 From: Sergey Nikitin Date: Wed, 9 Apr 2014 17:27:28 +0400 Subject: [PATCH] Fixed wrong behavior in method search_s in BaseLdap class. Variable 'py_result' can be not initialized if self.page_size > 0 because it's initialized only in the 'else' block. Closes bug 1305056 Change-Id: Ib9cfb2c03279d97ec0c1a4f8cb45fe5b568b9d7a --- keystone/common/ldap/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/common/ldap/core.py b/keystone/common/ldap/core.py index 1de4733047..3a55c38071 100644 --- a/keystone/common/ldap/core.py +++ b/keystone/common/ldap/core.py @@ -515,7 +515,7 @@ class KeystoneLDAPHandler(LDAPHandler): filterstr_utf8, attrlist_utf8, attrsonly) - py_result = convert_ldap_result(ldap_result) + py_result = convert_ldap_result(ldap_result) return py_result