mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
ari_websockets: Fix frack if ARI config fails to load.
ari_ws_session_registry_dtor() wasn't checking that the container was valid
before running ao2_callback on it to shutdown registered sessions.
(cherry picked from commit 62e73f9bd8
)
This commit is contained in:
committed by
Asterisk Development Team
parent
64aeb20724
commit
9676754857
@@ -697,6 +697,10 @@ static int ari_ws_session_shutdown_cb(void *ari_ws_session, void *arg, int flags
|
||||
|
||||
static void ari_ws_session_registry_dtor(void)
|
||||
{
|
||||
if (!ari_ws_session_registry) {
|
||||
return;
|
||||
}
|
||||
|
||||
ao2_callback(ari_ws_session_registry, OBJ_MULTIPLE | OBJ_NODATA,
|
||||
ari_ws_session_shutdown_cb, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user