mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +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 234ca964e5
)
This commit is contained in:
committed by
Asterisk Development Team
parent
8d69af73d6
commit
fae0f48187
@@ -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