Skip to content

Commit

Permalink
maxfwd: remove useless asign in is_maxfwd_lt()
Browse files Browse the repository at this point in the history
(cherry picked from commit adbdaab)
  • Loading branch information
miconda committed Feb 22, 2018
1 parent 09f588a commit 7d906b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/maxfwd/maxfwd.c
Expand Up @@ -179,10 +179,9 @@ static int w_process_maxfwd_header(struct sip_msg *msg, char *str1, char *str2)
static int is_maxfwd_lt(struct sip_msg *msg, char *slimit, char *foo)
{
str mf_value;
int limit;
int limit = 70;
int val;

limit = (int)(long)slimit;
if(get_int_fparam(&limit, msg, (fparam_t *)slimit) < 0) {
LM_ERR("could not get param value\n");
return -1;
Expand Down

0 comments on commit 7d906b4

Please sign in to comment.