From 182d2fa8351925661acfbeedc558fe9240a44b5e Mon Sep 17 00:00:00 2001 From: Patrice Fournier Date: Thu, 15 Feb 2024 16:35:58 -0500 Subject: [PATCH] Added missing %s in one form of contact string Added missing %s in contact header format string when formatting with rfc_5626, extension number and IPv6. --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 43bd68b9237..a370b52442d 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -4176,7 +4176,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag, if (extension_in_contact) { if (rfc_5626) { - format = strchr(sipip, ':') ? "%s" : "%s"; + format = strchr(sipip, ':') ? "%s" : "%s"; gateway->register_contact = switch_core_sprintf(gateway->pool, format, extension, sipip, sofia_glue_transport_has_tls(gateway->register_transport) ?