diff options
author | 2015-07-31 11:22:35 -0700 | |
---|---|---|
committer | 2015-07-31 11:22:35 -0700 | |
commit | 45ce927c7cf7abbdb452989d6d58c875a800e4ea (patch) | |
tree | bc4091d4fafc5421ac3f2799621b1dda29394ce6 /src/core/security/client_auth_filter.c | |
parent | be043d9ce7d69eb3787ed232f0bc8a3f99e69807 (diff) |
Properly send GRPC_STATUS_UNAUTHENTICATED from server auth failures
Diffstat (limited to 'src/core/security/client_auth_filter.c')
-rw-r--r-- | src/core/security/client_auth_filter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/security/client_auth_filter.c b/src/core/security/client_auth_filter.c index e86b5430b2..e2d1b6fce9 100644 --- a/src/core/security/client_auth_filter.c +++ b/src/core/security/client_auth_filter.c @@ -77,10 +77,8 @@ typedef struct { static void bubble_up_error(grpc_call_element *elem, const char *error_msg) { call_data *calld = elem->call_data; - channel_data *chand = elem->channel_data; - grpc_transport_stream_op_add_cancellation( - &calld->op, GRPC_STATUS_UNAUTHENTICATED, - grpc_mdstr_from_string(chand->md_ctx, error_msg, 0)); + grpc_transport_stream_op_add_cancellation(&calld->op, + GRPC_STATUS_UNAUTHENTICATED); grpc_call_next_op(elem, &calld->op); } |