Browse Source

lavf/tls_gnutls: check for interrupt inside handshake loop

fixes #8080

Signed-off-by: Błażej Szczygieł <spaz16@wp.pl>
tags/n4.3
Błażej Szczygieł Jan Ekström 6 years ago
parent
commit
561ba15c97
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/tls_gnutls.c

+ 5
- 0
libavformat/tls_gnutls.c View File

@@ -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);


Loading…
Cancel
Save