Module: kamailio
Branch: master
Commit: 1a5662b212ddcbea40ca33e34bfda0459802b756
URL:
https://github.com/kamailio/kamailio/commit/1a5662b212ddcbea40ca33e34bfda04…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-04T09:00:45+02:00
core: parser uri - add missing break to avoid useless assignments
---
Modified: src/core/parser/parse_uri.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1a5662b212ddcbea40ca33e34bfda04…
Patch:
https://github.com/kamailio/kamailio/commit/1a5662b212ddcbea40ca33e34bfda04…
---
diff --git a/src/core/parser/parse_uri.c b/src/core/parser/parse_uri.c
index 0661ce4bfa..31d67f41f0 100644
--- a/src/core/parser/parse_uri.c
+++ b/src/core/parser/parse_uri.c
@@ -996,9 +996,11 @@ int parse_uri(char* buf, int len, struct sip_uri* uri)
if (scheme==URN_SCH){
uri->host.s=s;
uri->host.len=p-s;
- DBG("parsed urn scheme...\n");
+ DBG("parsed urn scheme with host: %.*s\n",
+ uri->host.len, uri->host.s);
/* this is the port, it can't be the passwd */
}else goto error_bad_port;
+ break;
case URI_HOST_P:
case URI_HOST6_END:
uri->host.s=s;