From 5537ae9930d02e7cf33e0c07a55933570f02de8e Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 19 Jan 2011 23:56:48 +0000 Subject: [PATCH] Only check container count if it exists. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@302837 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/manager.c b/main/manager.c index 1c59f490dd..a64e802ca1 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4787,7 +4787,7 @@ int __ast_manager_event_multichan(int category, const char *event, int chancount struct ast_str *buf; int i; - if (!ao2_container_count(sessions) && AST_RWLIST_EMPTY(&manager_hooks)) { + if (!(sessions && ao2_container_count(sessions)) && AST_RWLIST_EMPTY(&manager_hooks)) { return 0; } -- 2.47.3