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:
parent
7b5ba15170
commit
583208db7e
2
NEWS
2
NEWS
@ -3,7 +3,7 @@ ver 0.21.2 (not yet released)
|
|||||||
- ffmpeg: require FFmpeg 3.1 or later
|
- ffmpeg: require FFmpeg 3.1 or later
|
||||||
- ffmpeg: fix broken sound with certain codecs
|
- ffmpeg: fix broken sound with certain codecs
|
||||||
* output
|
* output
|
||||||
- httpd: fix crash with "always_on"
|
- httpd: fix two crash bugs
|
||||||
* fix zlib support
|
* fix zlib support
|
||||||
|
|
||||||
ver 0.21.1 (2018/11/04)
|
ver 0.21.1 (2018/11/04)
|
||||||
|
@ -98,8 +98,11 @@ class HttpdClient final
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If the current metadata was already sent to the client.
|
* If the current metadata was already sent to the client.
|
||||||
|
*
|
||||||
|
* Initialized to `true` because there is no metadata #Page
|
||||||
|
* pending to be sent.
|
||||||
*/
|
*/
|
||||||
bool metadata_sent = false;
|
bool metadata_sent = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of streaming data between each metadata block
|
* The amount of streaming data between each metadata block
|
||||||
|
Loading…
Reference in New Issue
Block a user