[asterisk-commits] rizzo: branch 1.6.0 r131206 - /branches/1.6.0/channels/chan_agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 16 10:04:25 CDT 2008


Author: rizzo
Date: Wed Jul 16 10:04:25 2008
New Revision: 131206

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131206
Log:
add missing terminator argument for ast_event_subscribe().
Without it the function will randomly walk on the stack
possibly causing a panic

Modified:
    branches/1.6.0/channels/chan_agent.c

Modified: branches/1.6.0/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_agent.c?view=diff&rev=131206&r1=131205&r2=131206
==============================================================================
--- branches/1.6.0/channels/chan_agent.c (original)
+++ branches/1.6.0/channels/chan_agent.c Wed Jul 16 10:04:25 2008
@@ -2464,7 +2464,7 @@
 	/* 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;
 }




More information about the asterisk-commits mailing list