aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-09-22 13:45:53 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-09-22 13:45:53 -0700
commitc34b2e744cdaa06ec0306d206dcb8637225b8681 (patch)
tree56c2509630e4d1633cb70a2f06b9e1ce0e1dfb45 /include
parent3cebee32dd58b3be727846b7c89f6bd29868e8d9 (diff)
Do not use string_ref for output params.
It is very much unsafe to do so as the string_ref could point on a stack variable of the callee.
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/security/auth_metadata_processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpc++/security/auth_metadata_processor.h b/include/grpc++/security/auth_metadata_processor.h
index 18ad922321..9b9c06e3b6 100644
--- a/include/grpc++/security/auth_metadata_processor.h
+++ b/include/grpc++/security/auth_metadata_processor.h
@@ -45,7 +45,7 @@ namespace grpc {
class AuthMetadataProcessor {
public:
typedef std::multimap<grpc::string_ref, grpc::string_ref> InputMetadata;
- typedef std::multimap<grpc::string, grpc::string_ref> OutputMetadata;
+ typedef std::multimap<grpc::string, grpc::string> OutputMetadata;
virtual ~AuthMetadataProcessor() {}