From ece3786a0aab9db7a3aaef74f8feb1581a7f5214 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Tue, 17 Apr 2018 07:22:12 +0000 Subject: [PATCH] Fix: Check if we actually have source->client->con in case we want to access source->client->con->tls --- src/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.c b/src/source.c index ef8aa347..73120c0e 100644 --- a/src/source.c +++ b/src/source.c @@ -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) {