aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-03-28 16:09:27 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-03-28 16:09:27 -0700
commit078ff3be441372397c32f0c1564777f61fddd75d (patch)
treee3b6f46d64e82d92912dfd45599d664a5a7b3247 /src/core/lib/security
parentebb79ba6737332e201a48a65fb13e0923b860389 (diff)
parent9a0f14ba9959ac0cbf672282f8376b4e4e3b14dc (diff)
Merge github.com:grpc/grpc into optionalize_chttp2
Diffstat (limited to 'src/core/lib/security')
-rw-r--r--src/core/lib/security/client_auth_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/security/client_auth_filter.c b/src/core/lib/security/client_auth_filter.c
index b9e5bf0339..af6073e560 100644
--- a/src/core/lib/security/client_auth_filter.c
+++ b/src/core/lib/security/client_auth_filter.c
@@ -172,7 +172,7 @@ static void send_security_metadata(grpc_exec_ctx *exec_ctx,
calld->creds = grpc_composite_call_credentials_create(channel_call_creds,
ctx->creds, NULL);
if (calld->creds == NULL) {
- bubble_up_error(exec_ctx, elem, GRPC_STATUS_INVALID_ARGUMENT,
+ bubble_up_error(exec_ctx, elem, GRPC_STATUS_INTERNAL,
"Incompatible credentials set on channel and call.");
return;
}
@@ -201,7 +201,7 @@ static void on_host_checked(grpc_exec_ctx *exec_ctx, void *user_data,
char *error_msg;
gpr_asprintf(&error_msg, "Invalid host %s set in :authority metadata.",
grpc_mdstr_as_c_string(calld->host));
- bubble_up_error(exec_ctx, elem, GRPC_STATUS_INVALID_ARGUMENT, error_msg);
+ bubble_up_error(exec_ctx, elem, GRPC_STATUS_INTERNAL, error_msg);
gpr_free(error_msg);
}
}