Skip to content

Commit 84b61a6

Browse files
committed
Merge remote-tracking branch 'me/ch/SSL_read' into 3.1
* me/ch/SSL_read: Partial fix for MDEV-27405:
2 parents 607ff32 + 32233e9 commit 84b61a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmariadb/secure/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ ssize_t ma_tls_read(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
726726
int rc;
727727
MARIADB_PVIO *pvio= ctls->pvio;
728728

729-
while ((rc= SSL_read((SSL *)ctls->ssl, (void *)buffer, (int)length)) < 0)
729+
while ((rc= SSL_read((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0)
730730
{
731731
int error= SSL_get_error((SSL *)ctls->ssl, rc);
732732
if (error != SSL_ERROR_WANT_READ)

0 commit comments

Comments
 (0)