Blame SOURCES/0021-GPO-Terminate-request-on-error.patch

905b4d
From f979db8ea926cd51093a0f2406ddfc49540b392e Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Tue, 21 Oct 2014 16:18:02 +0200
905b4d
Subject: [PATCH 21/22] GPO: Terminate request on error
905b4d
905b4d
Reviewed-by: Pavel Reichl <preichl@redhat.com>
905b4d
---
905b4d
 src/providers/ad/ad_gpo.c | 2 ++
905b4d
 1 file changed, 2 insertions(+)
905b4d
905b4d
diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c
905b4d
index 3f5df75c5a9de53eac11ffcf785e929cf9b3165e..4dfbd4b6943b477bd93fdd730dfa5b1c5828a10a 100644
905b4d
--- a/src/providers/ad/ad_gpo.c
905b4d
+++ b/src/providers/ad/ad_gpo.c
905b4d
@@ -3954,11 +3954,13 @@ static void gpo_cse_done(struct tevent_req *subreq)
905b4d
               "ad_gpo_parse_gpo_child_response failed: [%d][%s]\n",
905b4d
               ret, strerror(ret));
905b4d
         tevent_req_error(req, ret);
905b4d
+        return;
905b4d
     } else if (child_result != 0){
905b4d
         DEBUG(SSSDBG_CRIT_FAILURE,
905b4d
               "Error in gpo_child: [%d][%s]\n",
905b4d
               child_result, strerror(child_result));
905b4d
         tevent_req_error(req, child_result);
905b4d
+        return;
905b4d
     }
905b4d
 
905b4d
     now = time(NULL);
905b4d
-- 
905b4d
1.9.3
905b4d