aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 23:47:28 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 23:47:28 +0000
commit286f581f4e8e0d1493f7551a35b47ce935675fa6 (patch)
treee1d563a5aaae03929d035ea70144338bfafc40ae
parentccc7cb06c4edf2b1be966e9d1b6b96249448a02b (diff)
Don't do frame processing if ast_read() returned NULL.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89886 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/autoservice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/autoservice.c b/main/autoservice.c
index 765788dea..61c37088a 100644
--- a/main/autoservice.c
+++ b/main/autoservice.c
@@ -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