From: Marc Olivier Chouinard Date: Sat, 17 Dec 2011 17:54:40 +0000 (-0500) Subject: Missing a small mutex lock from commit e9bde2eb X-Git-Tag: v1.2-rc1~27^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec2dce58f8daf7012fedb51e6ddac2f39cc4eebb;p=thirdparty%2Ffreeswitch.git Missing a small mutex lock from commit e9bde2eb --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index c9b8539fed..99897fb3fd 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3665,7 +3665,7 @@ void sofia_presence_check_subscriptions(sofia_profile_t *profile, time_t now) sql = switch_mprintf("delete from sip_subscriptions where (expires = -1 or (expires > 0 and expires <= %ld)) and hostname='%q'", (long) now, mod_sofia_globals.hostname); - sofia_glue_actually_execute_sql(profile, sql, NULL); + sofia_glue_actually_execute_sql(profile, sql, profile->ireg_mutex); }