Exit process_tcp_packet() in case TCP header is incomplete

This commit is contained in:
William Robinet 2021-01-27 18:32:18 +01:00
parent f24eafd8b4
commit 4997301a9d

View file

@ -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);