From: Anthony Minessale Date: Wed, 15 Feb 2012 17:48:12 +0000 (-0600) Subject: fix regression where backwards printf args are messing up a sql stmt that breaks SLA X-Git-Tag: v1.2-rc1~19^2^2~68^2~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a349eecc4ee36e29fee438061a03d252d9f92c6;p=thirdparty%2Ffreeswitch.git fix regression where backwards printf args are messing up a sql stmt that breaks SLA --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 7a34e1a0f1..2e11271003 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3030,12 +3030,12 @@ static int sync_sla(sofia_profile_t *profile, const char *to_user, const char *t if (unseize) { sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port " "from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q')", - mod_sofia_globals.hostname, call_id, profile->name); + call_id, mod_sofia_globals.hostname, profile->name); } else { sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port " "from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q'", - mod_sofia_globals.hostname, call_id, profile->name); + call_id, mod_sofia_globals.hostname, profile->name); } } else {