diff options
author | Richard Levitte <levitte@openssl.org> | 2017-09-05 12:42:58 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-09-05 17:07:20 +0200 |
commit | 94b5d7aae99e117ddfffa82b98de403be77279a5 (patch) | |
tree | 6372dbad10f665206e31487a4e99dc7202abeb64 /crypto/store | |
parent | Don't use ciphersuites for inflating the ClientHello in clienthellotest (diff) | |
download | openssl-94b5d7aae99e117ddfffa82b98de403be77279a5.tar.xz openssl-94b5d7aae99e117ddfffa82b98de403be77279a5.zip |
Fix OSSL_STORE's 'file' loader: make sure peekbuf is initialised
This quiets down complaints about the use of uninitialised memory
[extended tests]
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4340)
Diffstat (limited to 'crypto/store')
-rw-r--r-- | crypto/store/loader_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c index 1c794ef826..00d030217a 100644 --- a/crypto/store/loader_file.c +++ b/crypto/store/loader_file.c @@ -855,7 +855,7 @@ static OSSL_STORE_LOADER_CTX *file_open(const OSSL_STORE_LOADER *loader, } } else { BIO *buff = NULL; - char peekbuf[4096]; + char peekbuf[4096] = { 0, }; if ((buff = BIO_new(BIO_f_buffer())) == NULL || (ctx->_.file.file = BIO_new_file(path, "rb")) == NULL) { |