diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-12-02 09:35:53 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-12-05 13:04:18 +0100 |
commit | 25d02f333b9a5531fa88db294f69a8347f275858 (patch) | |
tree | cb095ae1ddb91853d228af198fb9f3e088102e10 /apps/s_server.c | |
parent | Fix the check of EVP_PKEY_decrypt_init (diff) | |
download | openssl-25d02f333b9a5531fa88db294f69a8347f275858.tar.xz openssl-25d02f333b9a5531fa88db294f69a8347f275858.zip |
Fix the check of BIO_set_write_buffer_size and BIO_set_read_buffer_size
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19819)
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 46af6b87da..0b794960f9 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -3131,7 +3131,7 @@ static int www_body(int s, int stype, int prot, unsigned char *context) } /* lets make the output buffer a reasonable size */ - if (!BIO_set_write_buffer_size(io, bufsize)) + if (BIO_set_write_buffer_size(io, bufsize) <= 0) goto err; if ((con = SSL_new(ctx)) == NULL) @@ -3560,7 +3560,7 @@ static int rev_body(int s, int stype, int prot, unsigned char *context) goto err; /* lets make the output buffer a reasonable size */ - if (!BIO_set_write_buffer_size(io, bufsize)) + if (BIO_set_write_buffer_size(io, bufsize) <= 0) goto err; if ((con = SSL_new(ctx)) == NULL) |