fix: pcap_dispatch is non blocking

feature: no response handle
This commit is contained in:
0x35c
2025-05-30 16:12:51 +02:00
parent 936c277d02
commit f35cad887d
6 changed files with 74 additions and 22 deletions

View File

@ -80,7 +80,7 @@ error:
int create_threads(const struct option_lst *options, char *ip_addr,
struct response *responses)
{
uint16_t port_start, port_end;
uint16_t port_start = 0, port_end = 0;
const char *ports = get_option_arg(options, FL_PORTS);
if (parse_ports(ports, &port_start, &port_end) < 0)
return -1;