Skip to content

Commit

Permalink
b2b_logic: parameters cannot be lower than 1
Browse files Browse the repository at this point in the history
(cherry picked from commit 152f22e63cc3f045492367b18ed5357cf5a89f2b)
  • Loading branch information
razvancrainea committed Dec 4, 2015
1 parent b6cd61b commit 4a06a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/b2b_logic/logic.c
Expand Up @@ -2864,7 +2864,7 @@ int b2b_scenario_parse_uri(xmlNodePtr value_node, char* value_content,
goto error;
}

if(param_no > B2B_INIT_MAX_PARAMNO)
if(param_no > B2B_INIT_MAX_PARAMNO || param_no < 1)
{
LM_ERR("Scenary document not well formed. Client to param not valid [%d]\n", param_no);
goto error;
Expand Down

0 comments on commit 4a06a71

Please sign in to comment.