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

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