Zero the tls12_record_protection struct instead of individual fields.
authorjsing <jsing@openbsd.org>
Sun, 16 May 2021 15:21:10 +0000 (15:21 +0000)
committerjsing <jsing@openbsd.org>
Sun, 16 May 2021 15:21:10 +0000 (15:21 +0000)
commit60497c21aeb56e3c73351ebf6849438e543c19b8
tree5046a8d7837378307f9db34308894f3d3c7b1d01
parentf6d8fcaed18e5ccb8e77952c23ec09be39e71cef
Zero the tls12_record_protection struct instead of individual fields.

In tls12_record_protection_clear(), rather than zeroing or NULLing
individual fields once a pointer has been freed, zero the entire struct once
the pointers have been dealt with.

ok tb@
lib/libssl/tls12_record_layer.c