[asterisk-commits] bbryant: branch 1.8 r318921 - /branches/1.8/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 13 13:09:39 CDT 2011


Author: bbryant
Date: Fri May 13 13:09:34 2011
New Revision: 318921

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=318921
Log:
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


Modified:
    branches/1.8/main/channel.c

Modified: branches/1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/channel.c?view=diff&rev=318921&r1=318920&r2=318921
==============================================================================
--- branches/1.8/main/channel.c (original)
+++ branches/1.8/main/channel.c Fri May 13 13:09:34 2011
@@ -3828,7 +3828,7 @@
 			}
 			/* 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);




More information about the asterisk-commits mailing list