diff options
author | David Garcia Quintas <dgq@google.com> | 2016-07-11 22:20:42 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-07-11 22:20:42 -0700 |
commit | b395c9e2789de6a54bd8d24ad3a1fd3c6659c12f (patch) | |
tree | bf9f945546243accfaf5e1774332d317e15b5224 /src/core/lib/security | |
parent | 01c4d995d35958c64e65feb8193c5ce2e0845758 (diff) | |
parent | ef6b991d63f6c170a1886d66a27f8387ef7818e6 (diff) |
Merge remote-tracking branch 'origin/fix_tsan' into lr_july_16
Diffstat (limited to 'src/core/lib/security')
-rw-r--r-- | src/core/lib/security/transport/client_auth_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/security/transport/client_auth_filter.c b/src/core/lib/security/transport/client_auth_filter.c index 3f9bc73367..bec9d80ab9 100644 --- a/src/core/lib/security/transport/client_auth_filter.c +++ b/src/core/lib/security/transport/client_auth_filter.c @@ -176,7 +176,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_INTERNAL, + bubble_up_error(exec_ctx, elem, GRPC_STATUS_UNAUTHENTICATED, "Incompatible credentials set on channel and call."); return; } @@ -205,7 +205,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_INTERNAL, error_msg); + bubble_up_error(exec_ctx, elem, GRPC_STATUS_UNAUTHENTICATED, error_msg); gpr_free(error_msg); } } |