[sr-dev] git:master:adbdaabe: maxfwd: remove useless asign in is_maxfwd_lt()
Daniel-Constantin Mierla
miconda at gmail.com
Tue Feb 6 12:48:40 CET 2018
Module: kamailio
Branch: master
Commit: adbdaabeef2d24882185f21fa1399da6468e1301
URL: https://github.com/kamailio/kamailio/commit/adbdaabeef2d24882185f21fa1399da6468e1301
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-02-06T12:48:10+01:00
maxfwd: remove useless asign in is_maxfwd_lt()
---
Modified: src/modules/maxfwd/maxfwd.c
---
Diff: https://github.com/kamailio/kamailio/commit/adbdaabeef2d24882185f21fa1399da6468e1301.diff
Patch: https://github.com/kamailio/kamailio/commit/adbdaabeef2d24882185f21fa1399da6468e1301.patch
---
diff --git a/src/modules/maxfwd/maxfwd.c b/src/modules/maxfwd/maxfwd.c
index 39344af919..e0812cd504 100644
--- a/src/modules/maxfwd/maxfwd.c
+++ b/src/modules/maxfwd/maxfwd.c
@@ -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;
More information about the sr-dev
mailing list