mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 01:17: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
|
@ -81,6 +81,9 @@ int process_tcp_packet(handler,ctx,p)
|
|||
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