diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-16 15:04:25 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-16 15:04:25 +0000 |
commit | eae53b6e9377b03f2a2f713ae66f82aa13fc1985 (patch) | |
tree | 9673e5684222928996d2a415930e50bd178490e2 /channels | |
parent | a1edc55ebaf7721cbb01aee35a8efe5921029e78 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@131206 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 74fd1a843..d995b78c0 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; } |