dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0123-AD-Provider-bug-fix-uninitialized-variable.patch

9cb92d
From 400c06ebd99bfa447d0f88228320224291c862e0 Mon Sep 17 00:00:00 2001
9cb92d
From: Pavel Reichl <preichl@redhat.com>
9cb92d
Date: Fri, 25 Apr 2014 13:26:19 +0100
9cb92d
Subject: [PATCH 123/124] AD Provider: bug-fix uninitialized variable
9cb92d
9cb92d
ad_subdomains_refresh() always set value to output parameter 'changes' if EOK is returned.
9cb92d
9cb92d
Reviewed-by: Sumit Bose <sbose@redhat.com>
9cb92d
(cherry picked from commit cef2384a3a6fc1a1637c6a55e2bced93d28e8fca)
9cb92d
---
9cb92d
 src/providers/ad/ad_subdomains.c | 3 ++-
9cb92d
 1 file changed, 2 insertions(+), 1 deletion(-)
9cb92d
9cb92d
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
9cb92d
index ee04cbbe048e55666db22c48cf22c4c0241a0e3c..ef3bb50e83fc8e39b91922d6fc9646dfe6da58a3 100644
9cb92d
--- a/src/providers/ad/ad_subdomains.c
9cb92d
+++ b/src/providers/ad/ad_subdomains.c
9cb92d
@@ -423,6 +423,7 @@ static errno_t ad_subdomains_refresh(struct ad_subdomains_ctx *ctx,
9cb92d
     if (count == h) {
9cb92d
         /* all domains were already accounted for and have been updated */
9cb92d
         ret = EOK;
9cb92d
+        *changes = false;
9cb92d
         goto done;
9cb92d
     }
9cb92d
 
9cb92d
@@ -682,7 +683,7 @@ static void ad_subdomains_get_root_domain_done(struct tevent_req *req)
9cb92d
     struct sysdb_attrs **reply = NULL;
9cb92d
     struct ad_subdomains_req_ctx *ctx;
9cb92d
     int dp_error = DP_ERR_FATAL;
9cb92d
-    bool has_changes;
9cb92d
+    bool has_changes = false;
9cb92d
 
9cb92d
     ctx = tevent_req_callback_data(req, struct ad_subdomains_req_ctx);
9cb92d
 
9cb92d
-- 
9cb92d
1.9.0
9cb92d