diff options
author | Ben Laurie <ben@openssl.org> | 2002-11-12 13:23:40 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-11-12 13:23:40 +0000 |
commit | 9831d941ca3d46eab3e61e6983921220b9d5d09a (patch) | |
tree | ec628033e73b153616f300b3807921c9fe7de70f /crypto/ocsp | |
parent | 707ceb29e04f7199f1ae619a6c0eab866fd15add (diff) |
Many security improvements (CHATS) and a warning fix.
Diffstat (limited to 'crypto/ocsp')
-rw-r--r-- | crypto/ocsp/ocsp_ht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_ht.c b/crypto/ocsp/ocsp_ht.c index b78cd37092..3194fd90d0 100644 --- a/crypto/ocsp/ocsp_ht.c +++ b/crypto/ocsp/ocsp_ht.c @@ -94,7 +94,7 @@ Content-Length: %d\r\n\r\n"; } if(!(mem = BIO_new(BIO_s_mem()))) goto err; /* Copy response to a memory BIO: socket bios can't do gets! */ - while ((len = BIO_read(b, tmpbuf, 1024))) { + while ((len = BIO_read(b, tmpbuf, sizeof tmpbuf))) { if(len < 0) { OCSPerr(OCSP_F_OCSP_SENDREQ_BIO,OCSP_R_SERVER_READ_ERROR); goto err; |