From fb3678b0ca1cb95563f3c836aa06118d7884e250 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 2 May 2018 14:15:16 +0000 Subject: [PATCH] Fix: Do not access request type when we have no parser (slaves) --- src/admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin.c b/src/admin.c index 57b256c8..fee735e9 100644 --- a/src/admin.c +++ b/src/admin.c @@ -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); }