aboutsummaryrefslogtreecommitdiff
path: root/crypto/bio
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-21 14:35:26 +0100
committerMatt Caswell <matt@openssl.org>2016-10-28 09:48:54 +0100
commitf42fd819d60c5ebbcfd7bff6173b89664ab2fde1 (patch)
tree2045a9b8dbb35d826c298bccb5ca1cbacc640a41 /crypto/bio
parentbb5310bed5ab14747cad1f6a57aa3b075ca4af65 (diff)
downloadopenssl-f42fd819d60c5ebbcfd7bff6173b89664ab2fde1.zip
openssl-f42fd819d60c5ebbcfd7bff6173b89664ab2fde1.tar.gz
openssl-f42fd819d60c5ebbcfd7bff6173b89664ab2fde1.tar.bz2
Tweaks based on review feedback of BIO size_t work
Rename some parameters. Also change handling of buffer sizes >INT_MAX in length. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio')
-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);