openssl_stream.c
13.4 KB
-
Fix return value of openssl_read (infinite loop) · b726c539
openssl_read should return -1 in case of error. SSL_read returns values <= 0 in case of error. A return value of 0 can lead to an infinite loop, so the return value of ssl_set_error will be returned if SSL_read is not successful (analog to openssl_write).
Christian Schlack committed