]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[Core] softtimer: fix crash in timezones when reloading xml 2360/head
authorwmasilva <asilva@wirelessmundi.com>
Wed, 24 Jan 2024 19:04:32 +0000 (19:04 +0000)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2024 19:04:32 +0000 (22:04 +0300)
commit1c057191002b8fbcabf31d6810fb1a834a148607
tree4a0dbd9660f9e6b8e4ff370919c6c05bd50daf61
parentd148a3e412dbe1772a0e6f8a39e9a9b480c49268
[Core] softtimer: fix crash in timezones when reloading xml

* switch_time: fix segfault null TIMEZONES_LIST.hash when reloading xml

* Unbind before destroying TIMEZONES_LIST.hash. Protect TIMEZONES_LIST.hash with a mutex that's allocated in core's global runtime.memory_pool so the mutex does not die on softtimer shutdown.

---------

Co-authored-by: Andrey Volk <andywolk@gmail.com>
src/switch_time.c