mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 09:27:04 +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
|
@ -260,6 +260,7 @@ int ssl_set_client_session_id(d,msg,len)
|
||||||
#ifdef OPENSSL
|
#ifdef OPENSSL
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
if(len>0)
|
||||||
if(r=r_data_create(&d->session_id,msg,len))
|
if(r=r_data_create(&d->session_id,msg,len))
|
||||||
ERETURN(r);
|
ERETURN(r);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue