summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-08-17 09:12:03 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 18:05:02 +0200
commit3b0e0352d8076909608d04750d3ea6b0d9ba33f6 (patch)
tree5a83e7424222d1463da4b0767e80e06b11094f66
parentcaee9828ee30609e9f433957dbb3d0163390a207 (diff)
downloadsssd-3b0e0352d8076909608d04750d3ea6b0d9ba33f6.tar.gz
sssd-3b0e0352d8076909608d04750d3ea6b0d9ba33f6.tar.bz2
sssd-3b0e0352d8076909608d04750d3ea6b0d9ba33f6.zip
DB: Update sss_domain_info with new updated data
-rw-r--r--src/db/sysdb_subdomains.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
index 58df4701..c89e4569 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -264,11 +264,6 @@ errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain,
return ENOMEM;
}
- ret = sysdb_master_domain_update(domain);
- if (ret != EOK) {
- goto done;
- }
-
msg = ldb_msg_new(tmp_ctx);
if (msg == NULL) {
ret = ENOMEM;
@@ -350,6 +345,11 @@ errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain,
goto done;
}
+ ret = sysdb_master_domain_update(domain);
+ if (ret != EOK) {
+ goto done;
+ }
+
ret = EOK;
done: