Ensure DTLS free functions can handle NULL
authorMatt Caswell <matt@openssl.org>
Thu, 10 Dec 2020 10:36:23 +0000 (10:36 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 8 Jan 2021 10:26:26 +0000 (10:26 +0000)
commitd0afb30ef3950cacff50ec539e90073b95a276df
tree55b18abd3156358a8f885a2af44f4208a5ca8d0d
parent3d0b6494d5a973d516e0944bc02b22385fca318a
Ensure DTLS free functions can handle NULL

Our free functions should be able to deal with the case where the object
being freed is NULL. This turns out to not be quite the case for DTLS
related objects.

Fixes #13649

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13655)
ssl/d1_lib.c
ssl/record/rec_layer_d1.c