Fix infinite loop when a custom rule has port 65535 (#1833)

Close #1829
This commit is contained in:
Ivan Nardi
2022-12-21 10:55:14 +01:00
committed by GitHub
parent 22821241e2
commit e9d5e72fb5
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ static void addDefaultPort(struct ndpi_detection_module_struct *ndpi_str,
ndpi_default_ports_tree_node_t **root,
const char *_func,
int _line) {
u_int16_t port;
u_int32_t port;
for(port = range->port_low; port <= range->port_high; port++) {
ndpi_default_ports_tree_node_t *node =