Module: kamailio
Branch: 5.4
Commit: d6dbd6aa1816ca3f18059db20cb6c47b4a9fb17a
URL:
https://github.com/kamailio/kamailio/commit/d6dbd6aa1816ca3f18059db20cb6c47…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-14T11:20:52+02:00
core: only skip over proto in alias inside uri_trim_rcv_alias()
- variable not used if set to the corresponding integer id
(cherry picked from commit 58b0631aafd7d6efa5534009fab197336468a9f8)
---
Modified: src/core/dset.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d6dbd6aa1816ca3f18059db20cb6c47…
Patch:
https://github.com/kamailio/kamailio/commit/d6dbd6aa1816ca3f18059db20cb6c47…
---
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 != ';') {