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:
parent
2d3409af1a
commit
ece3786a0a
@ -516,7 +516,7 @@ static refbuf_t *get_next_buffer (source_t *source)
|
|||||||
}
|
}
|
||||||
source->last_read = current;
|
source->last_read = current;
|
||||||
refbuf = source->format->get_buffer (source);
|
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;
|
source->client->con->error = 1;
|
||||||
if (source->client->con && source->client->con->error)
|
if (source->client->con && source->client->con->error)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user