Fix compilation warning with GCC11.
authorJuergen Christ <jchrist@linux.ibm.com>
Tue, 25 May 2021 16:03:06 +0000 (18:03 +0200)
committerPauli <pauli@openssl.org>
Thu, 27 May 2021 10:31:13 +0000 (20:31 +1000)
commit4612eec35def0523192ee2c406f99ea5bbb184fb
tree2cb1cf00b69cdf3c0c07aae1acd388cea0c79273
parent72f62f4408d2a4e75c58706d41775e4f8f7f0034
Fix compilation warning with GCC11.

Parameter "header" of ssl3_cbc_digest_record was fixed to a 13 bytes header
but used as a pointer.  This caused a warning about out-of-bounds array access
with GCC 11.

Fixes #15462.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15463)
ssl/s3_cbc.c
ssl/ssl_local.h