]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't do frame processing if ast_read() returned NULL.
authorRussell Bryant <russell@russellbryant.com>
Tue, 27 Nov 2007 23:47:28 +0000 (23:47 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 27 Nov 2007 23:47:28 +0000 (23:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89886 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/autoservice.c

index 765788deaf3b893270c7d588c8106d0247e4eda6..61c37088a1d60fd0c7b5cef603652c3ca2a297dd 100644 (file)
@@ -89,6 +89,9 @@ static void *autoservice_run(void *ign)
                chan = ast_waitfor_n(mons, x, &ms);
                if (chan) {
                        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