aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ookla.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-12-22 21:41:32 +0100
committerGitHub <noreply@github.com>2022-12-22 21:41:32 +0100
commit5fafe8374a5cc0cc890053c5bf0cb81b3bda80c9 (patch)
tree41a82c662550d5aaab0c31e45875106c61e3949e /src/lib/protocols/ookla.c
parente9d5e72fb58d5989673487c4b4ef4584d8694467 (diff)
postgres: improve detection (#1831)
Remove some dead code (found via coverage report)
Diffstat (limited to 'src/lib/protocols/ookla.c')
-rw-r--r--src/lib/protocols/ookla.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/protocols/ookla.c b/src/lib/protocols/ookla.c
index f3aec6e68..137b0a2a3 100644
--- a/src/lib/protocols/ookla.c
+++ b/src/lib/protocols/ookla.c
@@ -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);