From 9a52908f210b5ed86c9ecaff6b11623c3a1cab82 Mon Sep 17 00:00:00 2001 From: Julien Boeuf Date: Thu, 8 Oct 2015 13:12:14 -0700 Subject: Fixing #3680 The server auth filter needs a reference on the server credentials so that the processor that belongs to the creds is not destroyed when the server auth filter is still using it. The server auth filter also does not need the security connector but just the auth context. --- src/core/security/server_secure_chttp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/security/server_secure_chttp2.c') diff --git a/src/core/security/server_secure_chttp2.c b/src/core/security/server_secure_chttp2.c index 881e44a3fe..82c639e830 100644 --- a/src/core/security/server_secure_chttp2.c +++ b/src/core/security/server_secure_chttp2.c @@ -93,9 +93,9 @@ static void setup_transport(grpc_exec_ctx *exec_ctx, void *statep, grpc_server_secure_state *state = statep; grpc_channel_args *args_copy; grpc_arg args_to_add[2]; - args_to_add[0] = grpc_security_connector_to_arg(state->sc); + args_to_add[0] = grpc_server_credentials_to_arg(state->creds); args_to_add[1] = - grpc_auth_metadata_processor_to_arg(&state->creds->processor); + grpc_auth_context_to_arg(state->sc->auth_context); args_copy = grpc_channel_args_copy_and_add( grpc_server_get_channel_args(state->server), args_to_add, GPR_ARRAY_SIZE(args_to_add)); -- cgit v1.2.3