diff options
author | 2016-11-23 14:47:11 -0800 | |
---|---|---|
committer | 2016-11-23 14:47:11 -0800 | |
commit | e150fff57ef947998ce8f45da112ed45ae01bacb (patch) | |
tree | ab120986e7316ba63977d1df6b43b981e43037fc /src/core/lib/security/transport/client_auth_filter.c | |
parent | 5059ddf58b36f1a66e4ee1cee1486362ab8cdd1f (diff) |
Fix some auth filtering bugs
Diffstat (limited to 'src/core/lib/security/transport/client_auth_filter.c')
-rw-r--r-- | src/core/lib/security/transport/client_auth_filter.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/lib/security/transport/client_auth_filter.c b/src/core/lib/security/transport/client_auth_filter.c index 43054bcfb4..80fdbe68eb 100644 --- a/src/core/lib/security/transport/client_auth_filter.c +++ b/src/core/lib/security/transport/client_auth_filter.c @@ -102,7 +102,13 @@ static void bubble_up_error(grpc_exec_ctx *exec_ctx, grpc_call_element *elem, grpc_call_next_op(exec_ctx, elem, &calld->op); } -static void add_error(grpc_error **combined, grpc_error *error) { abort(); } +static void add_error(grpc_error **combined, grpc_error *error) { + if (error == GRPC_ERROR_NONE) return; + if (*combined == GRPC_ERROR_NONE) { + *combined = GRPC_ERROR_CREATE("Client auth metadata plugin error"); + } + *combined = grpc_error_add_child(*combined, error); +} static void on_credentials_metadata(grpc_exec_ctx *exec_ctx, void *user_data, grpc_credentials_md *md_elems, |