Commit e1eca8d7 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //net/reporting/

Fix use-after-move (potential) bug found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Ia0015d61694c30022302375b282dad8ade781c99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385381Reviewed-by: default avatarEric Orth <ericorth@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807641}
parent b327ee3b
...@@ -85,7 +85,7 @@ bool ProcessEndpoint(ReportingDelegate* delegate, ...@@ -85,7 +85,7 @@ bool ProcessEndpoint(ReportingDelegate* delegate,
return false; return false;
endpoint_info_out->weight = weight; endpoint_info_out->weight = weight;
return delegate->CanSetClient(group_key.origin, endpoint_url); return delegate->CanSetClient(group_key.origin, endpoint_info_out->url);
} }
// Processes a single endpoint group tuple received in a Report-To header. // Processes a single endpoint group tuple received in a Report-To header.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment