Module: kamailio
Branch: master
Commit: 58b0631aafd7d6efa5534009fab197336468a9f8
URL:
https://github.com/kamailio/kamailio/commit/58b0631aafd7d6efa5534009fab1973…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-14T11:18:53+02:00
core: only skip over proto in alias inside uri_trim_rcv_alias()
- variable not used if set to the corresponding integer id
---
Modified: src/core/dset.c
---
Diff:
https://github.com/kamailio/kamailio/commit/58b0631aafd7d6efa5534009fab1973…
Patch:
https://github.com/kamailio/kamailio/commit/58b0631aafd7d6efa5534009fab1973…
---
diff --git a/src/core/dset.c b/src/core/dset.c
index db2de4cfc7..16e1cdc12e 100644
--- a/src/core/dset.c
+++ b/src/core/dset.c
@@ -1039,7 +1039,6 @@ int uri_trim_rcv_alias(str *uri, str *nuri)
char *p;
str skip;
str ip, port;
- int proto;
if(uri == NULL || nuri == NULL) {
LM_ERR("invalid parameter value\n");
@@ -1089,7 +1088,7 @@ int uri_trim_rcv_alias(str *uri, str *nuri)
/* proper alias parameter not found */
return 0;
}
- proto = (int)(*p - '0');
+ /* jump over proto */
p++;
if(p != uri->s + uri->len && *p != ';') {