mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-25 02:47:06 +00:00
Avoid client session_id related leak
This commit is contained in:
parent
ee1d6de1f8
commit
cc1e752167
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue