output/httpd: copy the Page reference; fixes use-after-free
This commit is contained in:
parent
e26d49efb7
commit
dae8b78569
@ -421,7 +421,7 @@ HttpdOutput::SendTag(const Tag &tag)
|
|||||||
|
|
||||||
auto page = ReadPage();
|
auto page = ReadPage();
|
||||||
if (page != nullptr) {
|
if (page != nullptr) {
|
||||||
header = std::move(page);
|
header = page;
|
||||||
BroadcastPage(page);
|
BroadcastPage(page);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user