1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Check if we actually have source->client->con in case we want to access source->client->con->tls

This commit is contained in:
Philipp Schafft 2018-04-17 07:22:12 +00:00
parent 2d3409af1a
commit ece3786a0a

View File

@ -516,7 +516,7 @@ static refbuf_t *get_next_buffer (source_t *source)
}
source->last_read = current;
refbuf = source->format->get_buffer (source);
if (source->client->con->tls && tls_got_shutdown(source->client->con->tls) > 1)
if (source->client->con && source->client->con->tls && tls_got_shutdown(source->client->con->tls) > 1)
source->client->con->error = 1;
if (source->client->con && source->client->con->error)
{