diff options
author | Brett Bryant <bbryant@digium.com> | 2011-05-13 18:10:45 +0000 |
---|---|---|
committer | Brett Bryant <bbryant@digium.com> | 2011-05-13 18:10:45 +0000 |
commit | 475ef22b205a5e228e796e7758149b953e949049 (patch) | |
tree | e2c7e816c2d2286b0f8fabe87089aaf739ec3184 | |
parent | 085b7b212a1ff3a343b16a7b803527f2afd6ac1f (diff) |
Merged revisions 318921 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r318921 | bbryant | 2011-05-13 14:09:34 -0400 (Fri, 13 May 2011) | 8 lines
Fixes a segmentation fault in dynamic hints when a channel technology isn't
loaded for a hint.
(closes issue #18495)
Reported by: bertrand
Tested by: bertrand
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@318922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 35fdea7d4..74541ab72 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3882,7 +3882,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio) } /* Clear the exception flag */ ast_clear_flag(chan, AST_FLAG_EXCEPTION); - } else if (chan->tech->read) + } else if (chan->tech && chan->tech->read) f = chan->tech->read(chan); else ast_log(LOG_WARNING, "No read routine on channel %s\n", chan->name); |