1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Fix: Do not access request type when we have no parser (slaves)

This commit is contained in:
Philipp Schafft 2018-05-02 14:15:16 +00:00
parent 514e825a81
commit fb3678b0ca

View File

@ -1035,7 +1035,7 @@ static void command_metadata(client_t *client,
ICECAST_LOG_DEBUG("Got metadata update request");
if (source->parser->req_type == httpp_req_put) {
if (source->parser && source->parser->req_type == httpp_req_put) {
ICECAST_LOG_ERROR("Got legacy SOURCE-style metadata update command on "
"source connected with PUT at mountpoint %s", source->mount);
}