aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/transport
diff options
context:
space:
mode:
authorGravatar Robbie Shade <robbie.shade@gmail.com>2017-03-22 14:49:29 -0400
committerGravatar GitHub <noreply@github.com>2017-03-22 14:49:29 -0400
commit3f90a955a95b22ef39fece2de82fbef828c0e159 (patch)
treeaf93f2ebcd6abc46e814ce0d9df9747c780c7225 /src/core/lib/security/transport
parentbe0dba162edf8a105a0e529f1e70e2b352137d4c (diff)
parent8f0fd82a96daf14c620ccab4b051449897fc29ca (diff)
Merge pull request #10252 from jboeuf/no_creds_assert_in_server_auth_filter
Removing credentials assert in server_auth_filter.
Diffstat (limited to 'src/core/lib/security/transport')
-rw-r--r--src/core/lib/security/transport/server_auth_filter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/security/transport/server_auth_filter.c b/src/core/lib/security/transport/server_auth_filter.c
index 01cb473177..c47fe56ba4 100644
--- a/src/core/lib/security/transport/server_auth_filter.c
+++ b/src/core/lib/security/transport/server_auth_filter.c
@@ -158,7 +158,7 @@ static void auth_on_recv(grpc_exec_ctx *exec_ctx, void *user_data,
call_data *calld = elem->call_data;
channel_data *chand = elem->channel_data;
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);
chand->creds->processor.process(
chand->creds->processor.state, calld->auth_context,
@@ -242,7 +242,6 @@ static grpc_error *init_channel_elem(grpc_exec_ctx *exec_ctx,
GPR_ASSERT(!args->is_last);
GPR_ASSERT(auth_context != NULL);
- GPR_ASSERT(creds != NULL);
/* initialize members */
chand->auth_context =