mirror of
https://github.com/adulau/ssldump.git
synced 2024-12-22 16:05:58 +00:00
Fix memory leak if SSL session id is not present
This commit is contained in:
parent
4310c3f117
commit
3ca46766e4
1 changed files with 4 additions and 3 deletions
|
@ -259,9 +259,10 @@ int ssl_set_client_session_id(d,msg,len)
|
|||
{
|
||||
#ifdef OPENSSL
|
||||
int r;
|
||||
|
||||
if(r=r_data_create(&d->session_id,msg,len))
|
||||
ERETURN(r);
|
||||
|
||||
if(len>0)
|
||||
if(r=r_data_create(&d->session_id,msg,len))
|
||||
ERETURN(r);
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue