summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/providers/ipa/ipa_common.c2
-rw-r--r--server/providers/krb5/krb5_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/providers/ipa/ipa_common.c b/server/providers/ipa/ipa_common.c
index 5ef19da7..5e097a17 100644
--- a/server/providers/ipa/ipa_common.c
+++ b/server/providers/ipa/ipa_common.c
@@ -474,7 +474,7 @@ static void ipa_resolve_callback(void *private_data, struct fo_server *server)
return;
}
- address = talloc_asprintf(service, srvaddr->h_name);
+ address = talloc_asprintf(service, "%s", srvaddr->h_name);
if (!address) {
DEBUG(1, ("Failed to copy address ...\n"));
return;
diff --git a/server/providers/krb5/krb5_common.c b/server/providers/krb5/krb5_common.c
index b1cf4201..86676f44 100644
--- a/server/providers/krb5/krb5_common.c
+++ b/server/providers/krb5/krb5_common.c
@@ -261,7 +261,7 @@ static void krb5_resolve_callback(void *private_data, struct fo_server *server)
return;
}
- address = talloc_asprintf(krb5_service, srvaddr->h_name);
+ address = talloc_asprintf(krb5_service, "%s", srvaddr->h_name);
if (!address) {
DEBUG(1, ("Failed to copy address ...\n"));
return;