mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Ensure the rrl object is set to NULL after it is freed
Once we free the rrl object we should NULL it to prevent a dangling ref to it. Otherwise we could get a double free. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18132)
This commit is contained in:
parent
9b7fb65e15
commit
efc84eacb7
@ -1774,6 +1774,7 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
|
||||
return 0;
|
||||
}
|
||||
|
||||
s->rlayer.rrl = NULL;
|
||||
if (meth != NULL)
|
||||
s->rlayer.rrlmethod = meth;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user