]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[mod_callcenter] Fix globals.nodes gets unset 1584/head
authoragree <37550360+greenbea@users.noreply.github.com>
Sun, 20 Mar 2022 02:44:26 +0000 (22:44 -0400)
committerGitHub <noreply@github.com>
Sun, 20 Mar 2022 02:44:26 +0000 (22:44 -0400)
commit415a8a19ebb4b41d8ea0ea02ccf7eb54fe1fb30a
treec069d15a05ad2577565ea54f6e917f5b8ebb0ad3
parent16c03f8ec859f2e152d593d9a7a205e462d0aa8e
[mod_callcenter] Fix globals.nodes gets unset

`globals` was getting initialized to null after `switch_event_bind_removable` binding causing `globals.nodes` to get set to NULL causing `switch_event_unbind` not to be able to unbind the SWITCH_EVENT_PRESENCE_PROBE event when unloading the module. Besides not being able to unbind the event, this was also causing a segfault  upon receiving a PRESENCE_PROBE event when unloading or reloading the module
src/mod/applications/mod_callcenter/mod_callcenter.c