Skip to content
Snippets Groups Projects
Commit 3f90a955 authored by Robbie Shade's avatar Robbie Shade Committed by GitHub
Browse files

Merge pull request #10252 from jboeuf/no_creds_assert_in_server_auth_filter

Removing credentials assert in server_auth_filter.
parents be0dba16 8f0fd82a
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ static void auth_on_recv(grpc_exec_ctx *exec_ctx, void *user_data, ...@@ -158,7 +158,7 @@ static void auth_on_recv(grpc_exec_ctx *exec_ctx, void *user_data,
call_data *calld = elem->call_data; call_data *calld = elem->call_data;
channel_data *chand = elem->channel_data; channel_data *chand = elem->channel_data;
if (error == GRPC_ERROR_NONE) { if (error == GRPC_ERROR_NONE) {
if (chand->creds->processor.process != NULL) { if (chand->creds != NULL && chand->creds->processor.process != NULL) {
calld->md = metadata_batch_to_md_array(calld->recv_initial_metadata); calld->md = metadata_batch_to_md_array(calld->recv_initial_metadata);
chand->creds->processor.process( chand->creds->processor.process(
chand->creds->processor.state, calld->auth_context, chand->creds->processor.state, calld->auth_context,
...@@ -242,7 +242,6 @@ static grpc_error *init_channel_elem(grpc_exec_ctx *exec_ctx, ...@@ -242,7 +242,6 @@ static grpc_error *init_channel_elem(grpc_exec_ctx *exec_ctx,
GPR_ASSERT(!args->is_last); GPR_ASSERT(!args->is_last);
GPR_ASSERT(auth_context != NULL); GPR_ASSERT(auth_context != NULL);
GPR_ASSERT(creds != NULL);
/* initialize members */ /* initialize members */
chand->auth_context = chand->auth_context =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment