From: Brett Bryant Date: Fri, 13 May 2011 18:09:34 +0000 (+0000) Subject: Fixes a segmentation fault in dynamic hints when a channel technology isn't X-Git-Tag: 1.8.5-rc1~11^2~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c38148a7d43426cc2ddc871126f98e0e1d84d29;p=thirdparty%2Fasterisk.git 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/branches/1.8@318921 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index 5025f0cd66..cb1c36e38a 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3828,7 +3828,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);