summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/db/sysdb_subdomains.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
index 46e03497..f5c16ac7 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -229,8 +229,8 @@ errno_t sysdb_master_domain_add_info(struct sysdb_ctx *sysdb,
goto done;
}
- ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_FLAT, "%s",
- domain_info->flat_name);
+ ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_FLAT,
+ domain_info->flat_name);
if (ret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(ret);
goto done;
@@ -249,8 +249,7 @@ errno_t sysdb_master_domain_add_info(struct sysdb_ctx *sysdb,
goto done;
}
- ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_ID, "%s",
- domain_info->id);
+ ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_ID, domain_info->id);
if (ret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(ret);
goto done;
@@ -312,7 +311,7 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb,
goto done;
}
- ret = ldb_msg_add_fmt(msg, SYSDB_OBJECTCLASS, "%s", SYSDB_SUBDOMAIN_CLASS);
+ ret = ldb_msg_add_string(msg, SYSDB_OBJECTCLASS, SYSDB_SUBDOMAIN_CLASS);
if (ret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(ret);
goto done;
@@ -326,8 +325,8 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb,
goto done;
}
- ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_FLAT, "%s",
- domain_info->flat_name);
+ ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_FLAT,
+ domain_info->flat_name);
if (ret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(ret);
goto done;
@@ -342,8 +341,7 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb,
goto done;
}
- ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_ID, "%s",
- domain_info->id);
+ ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_ID, domain_info->id);
if (ret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(ret);
goto done;