Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/extensions/filters/common/rbac/engine_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Common {
namespace RBAC {

namespace {
const Envoy::Http::HeaderMapImpl empty_header = Envoy::Http::HeaderMapImpl();
const envoy::api::v2::core::Metadata empty_metadata = envoy::api::v2::core::Metadata();
const Envoy::Http::HeaderMapImpl empty_header;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose these should actually be constructed-on-first-use.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I have a change for it, up to you to change this here or I will open another PR

const envoy::api::v2::core::Metadata empty_metadata;
} // namespace

RoleBasedAccessControlEngineImpl::RoleBasedAccessControlEngineImpl(
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inline Http::TestHeaderMapImpl fromHeaders(const test::fuzz::Headers& headers) {
}

// Convert from HeaderMap to test proto Headers.
inline test::fuzz::Headers toHeaders(const Http::HeaderMapImpl headers) {
inline test::fuzz::Headers toHeaders(const Http::HeaderMap& headers) {
test::fuzz::Headers fuzz_headers;
headers.iterate(
[](const Http::HeaderEntry& header, void* ctxt) -> Http::HeaderMap::Iterate {
Expand Down