diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 3df6e3f0a1..c1db49d334 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/avassert.h" #include "libavutil/mem.h" #include "network.h" #include "os_support.h" @@ -818,6 +819,7 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** TLSContext *c = h->priv_data; TLSShared *s = &c->tls_shared; int ret = 0; + av_assert0(s); s->is_dtls = 1; /** @@ -918,6 +920,7 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op TLSShared *s = &c->tls_shared; int ret; + av_assert0(s); if ((ret = ff_tls_open_underlying(s, h, uri, options)) < 0) goto fail;