diff options
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/common/secure_create_auth_context.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpp/common/secure_create_auth_context.cc b/src/cpp/common/secure_create_auth_context.cc index 21994945f8..d81f4bbc4a 100644 --- a/src/cpp/common/secure_create_auth_context.cc +++ b/src/cpp/common/secure_create_auth_context.cc @@ -43,9 +43,8 @@ std::shared_ptr<const AuthContext> CreateAuthContext(grpc_call* call) { if (call == nullptr) { return std::shared_ptr<const AuthContext>(); } - grpc_auth_context* context = - const_cast<grpc_auth_context*>(grpc_call_auth_context(call)); - return std::shared_ptr<const AuthContext>(new SecureAuthContext(context)); + return std::shared_ptr<const AuthContext>( + new SecureAuthContext(grpc_call_auth_context(call))); } } // namespace grpc |