From dae8b7856994a88add3892db82b3b113d7cace8e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Mar 2017 20:17:09 +0200 Subject: [PATCH] output/httpd: copy the Page reference; fixes use-after-free --- src/output/plugins/httpd/HttpdOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx index b5c48ea8b..e8ed6d97f 100644 --- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx +++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx @@ -421,7 +421,7 @@ HttpdOutput::SendTag(const Tag &tag) auto page = ReadPage(); if (page != nullptr) { - header = std::move(page); + header = page; BroadcastPage(page); } } else {