From accfd377e706d6f8f1ce3a42975af7db7255a152 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 16 Jul 2008 15:04:25 +0000 Subject: [PATCH] add missing terminator argument for ast_event_subscribe(). Without it the function will randomly walk on the stack possibly causing a panic git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131206 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 74fd1a8436..d995b78c0d 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -2464,7 +2464,7 @@ static int load_module(void) /* Dialplan Functions */ ast_custom_function_register(&agent_function); - agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL); + agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL, AST_EVENT_IE_END); return AST_MODULE_LOAD_SUCCESS; }