output/httpd: fix nullptr dereference crash bug

When `metadata_sent` is `false`, the plugin assumes there is metadata
which must be sent, even if no metadata page was passed to the plugin.
Initializing it to `true` avoids dereferencing this `nullptr`.

Fixes #412
This commit is contained in:
Max Kellermann
2018-11-08 09:37:18 +01:00
parent 7b5ba15170
commit 583208db7e
2 changed files with 5 additions and 2 deletions

2
NEWS
View File

@@ -3,7 +3,7 @@ ver 0.21.2 (not yet released)
- ffmpeg: require FFmpeg 3.1 or later
- ffmpeg: fix broken sound with certain codecs
* output
- httpd: fix crash with "always_on"
- httpd: fix two crash bugs
* fix zlib support
ver 0.21.1 (2018/11/04)