diff options
author | Martin Storsjö <martin@martin.st> | 2018-08-16 09:55:41 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-08-17 13:08:28 +0300 |
commit | 6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978 (patch) | |
tree | 478a86e980d71dfea5279ffe78d0341d4078b04b /libavformat/tls_openssl.c | |
parent | 22f98ac19cf29f22b3e1d10314df9503f06fe683 (diff) | |
download | ffmpeg-6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978.tar.gz |
tls_openssl: Fix checks for SSL_ERROR_WANT_WRITE in nonblocking operation
This was a typo in 0671eb2346c, spotted by Chris Carroux.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/tls_openssl.c')
-rw-r--r-- | libavformat/tls_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index f0b325ae98..4a2fcfd771 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -112,7 +112,7 @@ static int print_tls_error(URLContext *h, int ret) TLSContext *c = h->priv_data; if (h->flags & AVIO_FLAG_NONBLOCK) { int err = SSL_get_error(c->ssl, ret); - if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_READ) + if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) return AVERROR(EAGAIN); } av_log(h, AV_LOG_ERROR, "%s\n", ERR_error_string(ERR_get_error(), NULL)); |