aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/security/client_auth_filter.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-31 11:22:35 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-31 11:22:35 -0700
commit45ce927c7cf7abbdb452989d6d58c875a800e4ea (patch)
treebc4091d4fafc5421ac3f2799621b1dda29394ce6 /src/core/security/client_auth_filter.c
parentbe043d9ce7d69eb3787ed232f0bc8a3f99e69807 (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.c6
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);
}