]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Missing a small mutex lock from commit e9bde2eb
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 17 Dec 2011 17:54:40 +0000 (12:54 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 17 Dec 2011 17:54:40 +0000 (12:54 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index c9b8539fed697c7b9122f18e9e887e42739e4c6a..99897fb3fdb51da113e8d8105c8773dda4ec9824 100644 (file)
@@ -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);
        }