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,8 +260,9 @@ int ssl_set_client_session_id(d,msg,len)
|
||||||
#ifdef OPENSSL
|
#ifdef OPENSSL
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if(r=r_data_create(&d->session_id,msg,len))
|
if(len>0)
|
||||||
ERETURN(r);
|
if(r=r_data_create(&d->session_id,msg,len))
|
||||||
|
ERETURN(r);
|
||||||
#endif
|
#endif
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue