aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/http_proxy.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-09-27 12:25:19 -0700
committerGravatar Mark D. Roth <roth@google.com>2017-09-27 12:25:19 -0700
commit1c34d1d0d87d950d65fa9666d24397bc4ab2c2f9 (patch)
tree3eeada0fd0209d317951914b8a25513a03758adf /src/core/ext/filters/client_channel/http_proxy.c
parentcb799c5132462dc99f49c35831d0826828081719 (diff)
Fix C++ goto problem.
Diffstat (limited to 'src/core/ext/filters/client_channel/http_proxy.c')
-rw-r--r--src/core/ext/filters/client_channel/http_proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/filters/client_channel/http_proxy.c b/src/core/ext/filters/client_channel/http_proxy.c
index eee16884ee..a16b44d3dc 100644
--- a/src/core/ext/filters/client_channel/http_proxy.c
+++ b/src/core/ext/filters/client_channel/http_proxy.c
@@ -91,6 +91,7 @@ static bool proxy_mapper_map_name(grpc_exec_ctx* exec_ctx,
char* user_cred = NULL;
*name_to_resolve = get_http_proxy_server(exec_ctx, &user_cred);
if (*name_to_resolve == NULL) return false;
+ char* no_proxy_str = NULL;
grpc_uri* uri =
grpc_uri_parse(exec_ctx, server_uri, false /* suppress_errors */);
if (uri == NULL || uri->path[0] == '\0') {
@@ -105,7 +106,7 @@ static bool proxy_mapper_map_name(grpc_exec_ctx* exec_ctx,
server_uri);
goto no_use_proxy;
}
- char* no_proxy_str = gpr_getenv("no_proxy");
+ no_proxy_str = gpr_getenv("no_proxy");
if (no_proxy_str != NULL) {
static const char* NO_PROXY_SEPARATOR = ",";
bool use_proxy = true;