[sr-dev] git:master:1a5662b2: core: parser uri - add missing break to avoid useless assignments
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jul 4 09:01:11 CEST 2017
Module: kamailio
Branch: master
Commit: 1a5662b212ddcbea40ca33e34bfda0459802b756
URL: https://github.com/kamailio/kamailio/commit/1a5662b212ddcbea40ca33e34bfda0459802b756
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1a5662b212ddcbea40ca33e34bfda0459802b756.diff
Patch: https://github.com/kamailio/kamailio/commit/1a5662b212ddcbea40ca33e34bfda0459802b756.patch
---
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;
More information about the sr-dev
mailing list