mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 17:27:02 +00:00
Twould help if we actually defined ->mod before comparing against it (reported and fixed by Juggie via IRC).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1662,6 +1662,7 @@ int ast_agi_register(struct ast_module *mod, agi_command *cmd)
|
|||||||
ast_join(fullcmd, sizeof(fullcmd), cmd->cmda);
|
ast_join(fullcmd, sizeof(fullcmd), cmd->cmda);
|
||||||
|
|
||||||
if (!find_command(cmd->cmda,1)) {
|
if (!find_command(cmd->cmda,1)) {
|
||||||
|
cmd->mod = mod;
|
||||||
AST_RWLIST_WRLOCK(&agi_commands);
|
AST_RWLIST_WRLOCK(&agi_commands);
|
||||||
AST_LIST_INSERT_TAIL(&agi_commands, cmd, list);
|
AST_LIST_INSERT_TAIL(&agi_commands, cmd, list);
|
||||||
AST_RWLIST_UNLOCK(&agi_commands);
|
AST_RWLIST_UNLOCK(&agi_commands);
|
||||||
|
Reference in New Issue
Block a user