Avoid client_random related leak

This commit is contained in:
William Robinet 2021-01-27 18:35:27 +01:00
parent 59b88f4e2b
commit 673f7ce85f

View file

@ -268,6 +268,7 @@ int ssl_set_client_random(d,msg,len)
#ifdef OPENSSL #ifdef OPENSSL
int r; int r;
r_data_destroy(&d->client_random);
if((r=r_data_create(&d->client_random,msg,len))) if((r=r_data_create(&d->client_random,msg,len)))
ERETURN(r); ERETURN(r);
#endif #endif