diff options
author | Mark D. Roth <roth@google.com> | 2016-07-12 14:10:47 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-07-12 14:10:47 -0700 |
commit | 6f6f59ae4b480d809d3e7f8af2b1a0cc3801117b (patch) | |
tree | e85462ef455c9d1db6e55f126f2097ddba04c6db /src/core/lib/security/transport | |
parent | 3c945ee2b3c3bf0fd01cc995332e252d1e10e51e (diff) | |
parent | 6b8a8e4a74fc83153a6fd3fbb7ec1ed2b288b4b4 (diff) |
Merge remote-tracking branch 'upstream/master' into filter_call_init_failure
Diffstat (limited to 'src/core/lib/security/transport')
-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 88e8de1449..110d8bf9f0 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); } } |