|
|
|
@ -215,7 +215,8 @@ static grpc_error* init_call_elem(grpc_call_element* elem, |
|
|
|
|
// data and save it in the call context.
|
|
|
|
|
grpc_server_security_context* server_ctx = |
|
|
|
|
grpc_server_security_context_create(args->arena); |
|
|
|
|
server_ctx->auth_context = GRPC_AUTH_CONTEXT_REF(chand->auth_context); |
|
|
|
|
server_ctx->auth_context = |
|
|
|
|
GRPC_AUTH_CONTEXT_REF(chand->auth_context, "server_auth_filter"); |
|
|
|
|
calld->auth_context = server_ctx->auth_context; |
|
|
|
|
if (args->context[GRPC_CONTEXT_SECURITY].value != nullptr) { |
|
|
|
|
args->context[GRPC_CONTEXT_SECURITY].destroy( |
|
|
|
|