diff options
author | 2016-06-23 13:55:06 -0700 | |
---|---|---|
committer | 2016-06-23 13:55:06 -0700 | |
commit | f0f70a8a68c107f9fcff2dd35867fd762c2c13d6 (patch) | |
tree | a64ce4dfc7103299acf5d033e745c39be88bbcef /src/core/lib/security/transport | |
parent | d605b63383678313aaf3a6a3be7d8f9fc7ca67e9 (diff) |
Make transport-level errors be reflected in status messages on calls
Allows us to eliminate logging those errors by default (since they are explicitly passed up to the application).
Required plumbing errors through the stack a little more deeply than we
had previously.
Diffstat (limited to 'src/core/lib/security/transport')
-rw-r--r-- | src/core/lib/security/transport/client_auth_filter.c | 3 |
1 files changed, 1 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 76be2acd72..e053afc745 100644 --- a/src/core/lib/security/transport/client_auth_filter.c +++ b/src/core/lib/security/transport/client_auth_filter.c @@ -220,8 +220,7 @@ static void auth_start_transport_op(grpc_exec_ctx *exec_ctx, grpc_linked_mdelem *l; grpc_client_security_context *sec_ctx = NULL; - if (calld->security_context_set == 0 && - op->cancel_with_status == GRPC_STATUS_OK) { + if (calld->security_context_set == 0 && op->cancel_error == GRPC_ERROR_NONE) { calld->security_context_set = 1; GPR_ASSERT(op->context); if (op->context[GRPC_CONTEXT_SECURITY].value == NULL) { |