mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-21 17:07:04 +00:00
Exit process_tcp_packet() in case TCP header is incomplete
This commit is contained in:
parent
f24eafd8b4
commit
4997301a9d
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ int process_tcp_packet(handler,ctx,p)
|
|||
int direction;
|
||||
stream_data *stream;
|
||||
tcp_conn *conn;
|
||||
|
||||
|
||||
if(p->len < 20)
|
||||
ABORT(1);
|
||||
|
||||
p->tcp=(struct tcphdr *)p->data;
|
||||
|
||||
print_tcp_packet(p);
|
||||
|
|
Loading…
Reference in a new issue