Skip to content

Commit

Permalink
Fixed missing error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Jul 4, 2019
1 parent 8076cdb commit 18c7aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route.c
Expand Up @@ -1132,14 +1132,14 @@ static int fix_actions(struct action* a)
LM_ALERT("BUG in route() type %d/%d\n",
t->elem[1].type, t->elem[2].type);
ret=E_BUG;
break;
goto error;
}
if (t->elem[1].u.number >= MAX_ACTION_ELEMS ||
t->elem[1].u.number <= 0) {
LM_ALERT("BUG in number of route parameters %d\n",
(int)t->elem[1].u.number);
ret=E_BUG;
break;
goto error;
}
}
break;
Expand Down

0 comments on commit 18c7aad

Please sign in to comment.