Blame SOURCES/0042-sysdb_master_domain_add_info-properly-set-do_update.patch

b2d430
From 9899507b2da55a374baef13c4dc3914fe853cf87 Mon Sep 17 00:00:00 2001
b2d430
From: Sumit Bose <sbose@redhat.com>
b2d430
Date: Mon, 25 Jul 2016 17:37:51 +0200
b2d430
Subject: [PATCH 42/44] sysdb_master_domain_add_info: properly set do_update
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
do_update should be only set if there is a change, i.e if something was
b2d430
added to the ldb_message.
b2d430
b2d430
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
b2d430
---
b2d430
 src/db/sysdb_subdomains.c | 4 ++--
b2d430
 1 file changed, 2 insertions(+), 2 deletions(-)
b2d430
b2d430
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
b2d430
index 02206e470e8e035cc05848137df6a1eb04806869..ff83f914f31d566e050c74a3ef5f5745f8c93add 100644
b2d430
--- a/src/db/sysdb_subdomains.c
b2d430
+++ b/src/db/sysdb_subdomains.c
b2d430
@@ -787,9 +787,9 @@ errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain,
b2d430
                 ret = sysdb_error_to_errno(ret);
b2d430
                 goto done;
b2d430
             }
b2d430
-        }
b2d430
 
b2d430
-        do_update = true;
b2d430
+            do_update = true;
b2d430
+        }
b2d430
     }
b2d430
 
b2d430
     if (do_update == false) {
b2d430
-- 
b2d430
2.4.11
b2d430