aboutsummaryrefslogtreecommitdiff
path: root/crypto/bio/bio_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/bio_meth.c')
-rw-r--r--crypto/bio/bio_meth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c
index daffc54..ea3155f 100644
--- a/crypto/bio/bio_meth.c
+++ b/crypto/bio/bio_meth.c
@@ -66,7 +66,7 @@ int bwrite_conv(BIO *bio, const char *in, size_t inl, size_t *written)
int ret;
if (inl > INT_MAX)
- return 0;
+ inl = INT_MAX;
ret = bio->method->bwrite_old(bio, in, (int)inl);