Avoid client session_id related leak

This commit is contained in:
William Robinet 2021-01-27 18:37:29 +01:00
parent ee1d6de1f8
commit cc1e752167

View file

@ -298,9 +298,11 @@ int ssl_set_client_session_id(d,msg,len)
#ifdef OPENSSL
int r;
if(len>0)
if(len>0) {
r_data_destroy(&d->session_id);
if((r=r_data_create(&d->session_id,msg,len)))
ERETURN(r);
}
#endif
return(0);
}