summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-07-19 18:17:10 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-08-01 22:24:44 +0200
commitc929c213c91b2f9d55f96d6964b9390636178991 (patch)
tree5666aabb7f8d4b43b8067efd53a421abe1a82d71 /src/db
parentc03b28a38b14fdb59f74864ae4dc56affe256508 (diff)
downloadsssd-c929c213c91b2f9d55f96d6964b9390636178991.tar.gz
sssd-c929c213c91b2f9d55f96d6964b9390636178991.tar.xz
sssd-c929c213c91b2f9d55f96d6964b9390636178991.zip
Fix wrong elements used in comparison
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 671c56558..46e034977 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -240,8 +240,8 @@ errno_t sysdb_master_domain_add_info(struct sysdb_ctx *sysdb,
}
if (domain_info->id != NULL &&
- (current_info->flat_name == NULL ||
- strcmp(current_info->flat_name, domain_info->id) != 0) ) {
+ (current_info->id == NULL ||
+ strcmp(current_info->id, domain_info->id) != 0) ) {
ret = ldb_msg_add_empty(msg, SYSDB_SUBDOMAIN_ID, LDB_FLAG_MOD_REPLACE,
NULL);
if (ret != LDB_SUCCESS) {