Avoid server_random related leak

This commit is contained in:
William Robinet 2021-01-27 18:36:56 +01:00
parent 673f7ce85f
commit ee1d6de1f8

View file

@ -282,7 +282,8 @@ int ssl_set_server_random(d,msg,len)
{
#ifdef OPENSSL
int r;
r_data_destroy(&d->server_random);
if((r=r_data_create(&d->server_random,msg,len)))
ERETURN(r);
#endif