Do not use RLAYERfatal on NULL RLAYER
authorTomas Mraz <tomas@openssl.org>
Fri, 19 Aug 2022 10:19:55 +0000 (12:19 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 23 Aug 2022 10:27:23 +0000 (12:27 +0200)
commit7b7ad9e578470fe2b20db230638cfc20e3acf252
treef8a5dcce3bdc89d16650c77f8ee716a52a988fe3
parenteb7a5cc3454174094c0c09f1d00aec464ce0f786
Do not use RLAYERfatal on NULL RLAYER

or on record layer that is to be freed anyway.

Fixes Coverity CID 15094021509403

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19027)
ssl/record/methods/dtls_meth.c
ssl/record/methods/tls_common.c