diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-26 20:04:13 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-26 20:04:13 +0000 |
commit | b35df171dca8e13c191d98457be35a5bd476ad71 (patch) | |
tree | f136481d545bf8cc79ba2b577e91e44108fcaf03 /channels/chan_iax2.c | |
parent | cbac3aee64c0c722d65d28d66c157956817992b9 (diff) |
Fix a crash in my last change to iax2_indicate(). (issue #9150)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56847 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 9f7509ab4..31b1f0922 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3184,14 +3184,14 @@ static int iax2_answer(struct ast_channel *c) static int iax2_indicate(struct ast_channel *c, int condition, const void *data, size_t datalen) { unsigned short callno = PTR_TO_CALLNO(c->tech_pvt); - struct chan_iax2_pvt *pvt = c->tech_pvt; + struct chan_iax2_pvt *pvt; int res = 0; if (option_debug && iaxdebug) ast_log(LOG_DEBUG, "Indicating condition %d\n", condition); ast_mutex_lock(&iaxsl[callno]); - + pvt = iaxs[callno]; if (!strcasecmp(pvt->mohinterpret, "passthrough")) { res = send_command(pvt, AST_FRAME_CONTROL, condition, 0, data, datalen, -1); ast_mutex_unlock(&iaxsl[callno]); |