diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index 0a43ff0cf3..f62e95d93c 100644 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -3135,7 +3135,7 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement, /* now, put the body of the for loop here */ exten->loop_break = for_end; - exten->loop_continue = for_test; + exten->loop_continue = for_inc; gen_prios(exten, new_label, p->u4.for_statements, mother_exten, this_context); /* this will link in all the statements here */