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

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