summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-07-25 17:37:51 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-07-25 21:20:47 +0200
commit136a07ee4e03984949eb7236e5d0ca3bbaa578a3 (patch)
treef1524d9ff937c15aba554b41237f7ae754c1764a /src/db
parent3000d86bea2bae735175f93b0e013bbcb3979f1e (diff)
downloadsssd-136a07ee4e03984949eb7236e5d0ca3bbaa578a3.tar.gz
sssd-136a07ee4e03984949eb7236e5d0ca3bbaa578a3.tar.xz
sssd-136a07ee4e03984949eb7236e5d0ca3bbaa578a3.zip
sysdb_master_domain_add_info: properly set do_update
do_update should be only set if there is a change, i.e if something was added to the ldb_message. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_subdomains.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
index 02206e470..ff83f914f 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -787,9 +787,9 @@ errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain,
ret = sysdb_error_to_errno(ret);
goto done;
}
- }
- do_update = true;
+ do_update = true;
+ }
}
if (do_update == false) {