From 152f9e939f91d94e6f30391182fd72d9267ec6e1 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Wed, 20 Jan 2010 17:35:10 +0100 Subject: Don't pass a variable as format to talloc_asprintf() This practice is not recommended and can also be dangerous. --- server/providers/ipa/ipa_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/providers/ipa') 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; -- cgit