Skip to content

Commit

Permalink
fix comparison bug
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Aug 21, 2023
1 parent b6c746f commit b694a41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/ext/xds/xds_listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ struct XdsListenerResource : public XdsResourceType::ResourceData {
} else {
auto& rc1 = absl::get<std::shared_ptr<const XdsRouteConfigResource>>(
route_config);
auto& rc2 = absl::get<std::shared_ptr<const XdsRouteConfigResource>>(
other.route_config);
if (!(*rc1 == *rc2)) return false;
auto* rc2 = absl::get_if<std::shared_ptr<const XdsRouteConfigResource>>(
&other.route_config);
if (rc2 == nullptr) return false;
if (!(*rc1 == **rc2)) return false;
}
return http_max_stream_duration == other.http_max_stream_duration &&
http_filters == other.http_filters;
Expand Down

0 comments on commit b694a41

Please sign in to comment.