diff options
author | 2016-07-08 10:10:02 -0700 | |
---|---|---|
committer | 2016-07-08 10:10:02 -0700 | |
commit | 703bfbeb93e294078e12c2d4a522fb66c1e8aa3b (patch) | |
tree | df9fa21a494dc80c100b1ab504561f3d58a373e8 /src | |
parent | 5a412cf891e8d58affeb308849d92778de5e38a9 (diff) | |
parent | f0ae3e39f08313cb7105374d8da97b210edc1ef1 (diff) |
Merge pull request #7239 from jboeuf/fix_7182
Change the return status codes according to the doc
Diffstat (limited to 'src')
-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 14ccf72dc9..ed7929aa27 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); } } |