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
-3
View File
@@ -105,13 +105,10 @@ static u_int16_t checkPort(u_int16_t port) {
switch(port) {
case DNS_PORT:
return(NDPI_PROTOCOL_DNS);
break;
case LLMNR_PORT:
return(NDPI_PROTOCOL_LLMNR);
break;
case MDNS_PORT:
return(NDPI_PROTOCOL_MDNS);
break;
}
return(0);