mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Properly initialize ast_devstate_aggregate so we don't crash sporadically.
This looks like it was just missed during a merge. (closes issue #15841) Reported by: amorsen Patches: ast_devstate_aggregate_init-in-ast_extension_state2.patch uploaded by amorsen (license 676) Tested by: amorsen (closes issue #15852) Reported by: amorsen Tested by: amorsen, farisraouf git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@222605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3208,6 +3208,8 @@ static int ast_extension_state2(struct ast_exten *e)
|
||||
if (!e)
|
||||
return -1;
|
||||
|
||||
ast_devstate_aggregate_init(&agg);
|
||||
|
||||
ast_copy_string(hint, ast_get_extension_app(e), sizeof(hint));
|
||||
|
||||
rest = hint; /* One or more devices separated with a & character */
|
||||
|
||||
Reference in New Issue
Block a user