diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 1e10d4e94797cfa5ba67327d28939a1cd6248a9e..3f1d9e0518961d0d77d310ebe616919e3a3b65c8 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -16666,7 +16666,8 @@ static void parse_busy_pattern(struct ast_variable *v, struct ast_dsp_busy_patte for (; ;) { /* Scans the string for the next value in the pattern. If none, it checks to see if any have been entered so far. */ - if(!sscanf(v->value, "%30d", &norval) && count_pattern == 0) { ast_log(LOG_ERROR, "busypattern= expects either busypattern=tonelength,quietlength or busypattern=t1length, q1length, t2length, q2length at line %d.\n", v->lineno); + if(!sscanf(v->value, "%30d", &norval) && count_pattern == 0) { + ast_log(LOG_ERROR, "busypattern= expects either busypattern=tonelength,quietlength or busypattern=t1length, q1length, t2length, q2length at line %d.\n", v->lineno); break; }