Commit 561ba15c authored by Błażej Szczygieł's avatar Błażej Szczygieł Committed by Jan Ekström

lavf/tls_gnutls: check for interrupt inside handshake loop

fixes #8080
Signed-off-by: 's avatarBłażej Szczygieł <spaz16@wp.pl>
parent e3c7b224
......@@ -183,6 +183,11 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op
gnutls_transport_set_ptr(p->session, c->tcp);
gnutls_priority_set_direct(p->session, "NORMAL", NULL);
do {
if (ff_check_interrupt(&h->interrupt_callback)) {
ret = AVERROR_EXIT;
goto fail;
}
ret = gnutls_handshake(p->session);
if (gnutls_error_is_fatal(ret)) {
ret = print_tls_error(h, ret);
......
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