Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: b8e0250bc957bb408f23317012716524129f1fa9 https://github.com/OpenSIPS/opensips/commit/b8e0250bc957bb408f23317012716524129f1fa9 Author: Liviu Chircu <li...@opensips.org> Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths: M modules/presence/subscribe.c Log Message: ----------- presence: Fix subtle race condition in update_db_subs() While walking the list and collecting expired subscriptions, it is incorrect to temporarily release, then re-acquire the lock and still make use of the @s or @prev_s pointers afterwards, as the list may have changed in the meantime! The fix is to detach and collect any expired subs, then walk & handle them in a separate iteration. To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications _______________________________________________ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel