diff options
author | Matt Caswell <matt@openssl.org> | 2016-10-21 15:35:26 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-28 10:48:54 +0200 |
commit | f42fd819d60c5ebbcfd7bff6173b89664ab2fde1 (patch) | |
tree | 2045a9b8dbb35d826c298bccb5ca1cbacc640a41 /crypto/bio/bio_meth.c | |
parent | Ensure that BIO_read_ex() and BIO_write_ex() only return 0 or 1 (diff) | |
download | openssl-f42fd819d60c5ebbcfd7bff6173b89664ab2fde1.tar.xz openssl-f42fd819d60c5ebbcfd7bff6173b89664ab2fde1.zip |
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/bio_meth.c')
-rw-r--r-- | crypto/bio/bio_meth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c index daffc541a3..ea3155f3fa 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); |