aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config
diff options
context:
space:
mode:
authorGravatar Hongwei Wang <hongweiw@google.com>2015-07-17 16:17:48 -0700
committerGravatar Hongwei Wang <hongweiw@google.com>2015-07-17 16:17:48 -0700
commitf0e9fecbe013b24b342bbef2e05350c996b81ab1 (patch)
tree12c65e093f7035432fcf952d3cc390301ede9060 /src/core/client_config
parenta3780a81026b05b1121f764ab71955eec0092273 (diff)
Update uri_parser
Diffstat (limited to 'src/core/client_config')
-rw-r--r--src/core/client_config/uri_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/client_config/uri_parser.c b/src/core/client_config/uri_parser.c
index 776a255923..410a61c8cf 100644
--- a/src/core/client_config/uri_parser.c
+++ b/src/core/client_config/uri_parser.c
@@ -98,7 +98,7 @@ grpc_uri *grpc_uri_parse(const char *uri_text, int suppress_errors) {
if (uri_text[scheme_end + 1] == '/' && uri_text[scheme_end + 2] == '/') {
authority_begin = scheme_end + 3;
- for (i = authority_begin; uri_text[i] != 0; i++) {
+ for (i = authority_begin; uri_text[i] != 0 && authority_end == -1; i++) {
if (uri_text[i] == '/') {
authority_end = i;
}