Commit ece3786a authored by Philipp Schafft's avatar Philipp Schafft 🦁

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

Fix: Check if we actually have source->client->con in case we want to access source->client->con->tls
parent 2d3409af
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment