[SSSD] [PATCH] GPO: Terminate request on error

Jakub Hrozek jhrozek at redhat.com
Wed Oct 22 12:26:02 UTC 2014


Hi,

attached is a patch for an issue I found when working on the SELinux
child.
-------------- next part --------------
>From d2bb267d4d7bdb39666cf95d8b457c16a51ef88a Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Tue, 21 Oct 2014 16:18:02 +0200
Subject: [PATCH] GPO: Terminate request on error

---
 src/providers/ad/ad_gpo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c
index c81bd49e0c840afda19772f0591f51c9a3e2d617..83edbe4fb5a7e617cab95c0330ceae31392b18b2 100644
--- a/src/providers/ad/ad_gpo.c
+++ b/src/providers/ad/ad_gpo.c
@@ -3898,11 +3898,13 @@ static void gpo_cse_done(struct tevent_req *subreq)
               "ad_gpo_parse_gpo_child_response failed: [%d][%s]\n",
               ret, strerror(ret));
         tevent_req_error(req, ret);
+        return;
     } else if (child_result != 0){
         DEBUG(SSSDBG_CRIT_FAILURE,
               "Error in gpo_child: [%d][%s]\n",
               child_result, strerror(child_result));
         tevent_req_error(req, child_result);
+        return;
     }
 
     now = time(NULL);
-- 
1.9.3



More information about the sssd-devel mailing list