Skip to content
Snippets Groups Projects
Commit 28ea6f0f authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix memory corruption

parent 6d353e2a
No related branches found
No related tags found
No related merge requests found
...@@ -206,8 +206,8 @@ void MetadataCredentialsPluginWrapper::InvokePlugin( ...@@ -206,8 +206,8 @@ void MetadataCredentialsPluginWrapper::InvokePlugin(
std::vector<grpc_metadata> md; std::vector<grpc_metadata> md;
for (auto it = metadata.begin(); it != metadata.end(); ++it) { for (auto it = metadata.begin(); it != metadata.end(); ++it) {
grpc_metadata md_entry; grpc_metadata md_entry;
md_entry.key = SliceReferencingString(it->first); md_entry.key = SliceFromCopiedString(it->first);
md_entry.value = SliceReferencingString(it->second); md_entry.value = SliceFromCopiedString(it->second);
md_entry.flags = 0; md_entry.flags = 0;
md.push_back(md_entry); md.push_back(md_entry);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment