Browse Source

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)
Daniel-Constantin Mierla 5 years ago
parent
commit
d6dbd6aa18
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/core/dset.c

+ 1 - 2
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 != ';') {