Merged revisions 89886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89886 | russell | 2007-11-27 17:47:28 -0600 (Tue, 27 Nov 2007) | 2 lines Don't do frame processing if ast_read() returned NULL. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89888 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
f296356f7c
commit
06695f5870
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ static void *autoservice_run(void *ign)
|
|||
|
||||
if ((chan = ast_waitfor_n(mons, x, &ms))) {
|
||||
struct ast_frame *f = ast_read(chan);
|
||||
|
||||
if (!f)
|
||||
continue;
|
||||
|
||||
/* Do not add a default entry in this switch statement. Each new
|
||||
* frame type should be addressed directly as to whether it should
|
||||
|
|
Reference in a new issue