output/httpd: copy the Page reference; fixes use-after-free

This commit is contained in:
Max Kellermann 2017-03-29 20:17:09 +02:00
parent e26d49efb7
commit dae8b78569

View File

@ -421,7 +421,7 @@ HttpdOutput::SendTag(const Tag &tag)
auto page = ReadPage();
if (page != nullptr) {
header = std::move(page);
header = page;
BroadcastPage(page);
}
} else {