ac7d03
From c9eefa180576e7218d6aef063ea52915c0ce18a6 Mon Sep 17 00:00:00 2001
ac7d03
From: David Kupka <dkupka@redhat.com>
ac7d03
Date: Mon, 27 Mar 2017 16:09:09 +0200
ac7d03
Subject: [PATCH] rpcserver.login_x509: Actually return reply from __call__
ac7d03
 method
ac7d03
ac7d03
__call__ didn't return causing internal error in wsgi application. Previously
ac7d03
this bug was hidden by some other error and the code worked even though it
ac7d03
shouldn't.
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6819
ac7d03
ac7d03
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
ac7d03
---
ac7d03
 ipaserver/rpcserver.py | 2 +-
ac7d03
 1 file changed, 1 insertion(+), 1 deletion(-)
ac7d03
ac7d03
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py
ac7d03
index be4e3916b6011dd2b6c90a0267990bf1e370dfb9..77ed7e124c2ca3dcb49d3a68269d6fa9875d4da0 100644
ac7d03
--- a/ipaserver/rpcserver.py
ac7d03
+++ b/ipaserver/rpcserver.py
ac7d03
@@ -842,7 +842,7 @@ class login_x509(KerberosLogin):
ac7d03
                 environ, start_response, 'KRB5CCNAME not set',
ac7d03
                 'Authentication failed')
ac7d03
 
ac7d03
-        super(login_x509, self).__call__(environ, start_response)
ac7d03
+        return super(login_x509, self).__call__(environ, start_response)
ac7d03
 
ac7d03
 
ac7d03
 class login_password(Backend, KerberosSession):
ac7d03
-- 
ac7d03
2.12.1
ac7d03