Skip to content

Commit bb5008e

Browse files
committed
CDRIVER-756: Check for both 0 and -1 as maybe-failure-or-maybe-retry codes
1 parent e863800 commit bb5008e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-stream-tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ _mongoc_stream_tls_write (mongoc_stream_tls_t *tls,
500500

501501
ret = BIO_write (tls->bio, buf, buf_len);
502502

503-
if (ret < 0) {
503+
if (ret <= 0) {
504504
return ret;
505505
}
506506

0 commit comments

Comments
 (0)