From: Russell Bryant Date: Thu, 13 Jan 2005 05:18:31 +0000 (+0000) Subject: Handle syntax errors in group descriptions more gracefully (bug #3330) X-Git-Tag: 1.0.11.1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=334bd9f57d2ddd596cba3cfce26dd7f93286a361;p=thirdparty%2Fasterisk.git Handle syntax errors in group descriptions more gracefully (bug #3330) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4781 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 1c78883bc1..8f19ea81b3 100755 --- a/channel.c +++ b/channel.c @@ -2904,8 +2904,8 @@ unsigned int ast_get_group(char *s) /* Just one */ finish = start; } else { - ast_log(LOG_ERROR, "Syntax error parsing '%s' at '%s'. Using '0'\n", s,piece); - return 0; + ast_log(LOG_ERROR, "Syntax error parsing '%s' at '%s'.\n", s, piece); + continue; } for (x=start;x<=finish;x++) { if ((x > 31) || (x < 0)) {