postgres: improve detection (#1831)

Remove some dead code (found via coverage report)
This commit is contained in:
Ivan Nardi
2022-12-22 21:41:32 +01:00
committed by GitHub
parent e9d5e72fb5
commit 5fafe8374a
14 changed files with 39 additions and 73 deletions
+1 -3
View File
@@ -100,10 +100,8 @@ void ndpi_search_ookla(struct ndpi_detection_module_struct* ndpi_struct, struct
} else {
if(sport == ookla_port)
addr = packet->iph->saddr;
else if(dport == ookla_port)
addr = packet->iph->daddr;
else
goto ookla_exclude;
addr = packet->iph->daddr;
#ifdef OOKLA_DEBUG
printf("=>>>>>>>> [OOKLA IPv4] Searching %u\n", addr);