aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/security
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-09-24 13:58:16 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-09-24 13:58:16 -0700
commit8dc09711330ad675d90021e1a7c525cc57d3d956 (patch)
treeb239706af1471312e84208d765fe237cc872d387 /src/core/security
parent7f0273fd02ba134fdf2b2cd533a47a18223ff970 (diff)
parent2c6206c32d09453a49723bae051fdd688b902265 (diff)
Merge github.com:grpc/grpc into shindig
Diffstat (limited to 'src/core/security')
-rw-r--r--src/core/security/credentials.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/security/credentials.c b/src/core/security/credentials.c
index bf570d91b3..bdd9ab8e9c 100644
--- a/src/core/security/credentials.c
+++ b/src/core/security/credentials.c
@@ -218,7 +218,7 @@ static grpc_security_status ssl_create_security_connector(
grpc_security_status status = GRPC_SECURITY_OK;
size_t i = 0;
const char *overridden_target_name = NULL;
- grpc_arg arg;
+ grpc_arg new_arg;
for (i = 0; args && i < args->num_args; i++) {
grpc_arg *arg = &args->args[i];
@@ -233,10 +233,10 @@ static grpc_security_status ssl_create_security_connector(
if (status != GRPC_SECURITY_OK) {
return status;
}
- arg.type = GRPC_ARG_STRING;
- arg.key = GRPC_ARG_HTTP2_SCHEME;
- arg.value.string = "https";
- *new_args = grpc_channel_args_copy_and_add(args, &arg, 1);
+ new_arg.type = GRPC_ARG_STRING;
+ new_arg.key = GRPC_ARG_HTTP2_SCHEME;
+ new_arg.value.string = "https";
+ *new_args = grpc_channel_args_copy_and_add(args, &new_arg, 1);
return status;
}