mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 22:16:33 +00:00
Fix two bugs in the new shortport.ssl portrule, reported by Tom Sellers.
The first is that "sctp" was being treated as a list of port states, when it should have been put in the same table as "tcp". The second is the same bug that we've seen before, which is that it was returning a function value instead of the result of calling the function.
This commit is contained in:
@@ -184,5 +184,5 @@ local LIKELY_SSL_SERVICES = {
|
||||
-- portrule = shortport.ssl
|
||||
function ssl(host, port)
|
||||
return port.version.service_tunnel == "ssl" or
|
||||
port_or_service(LIKELY_SSL_PORTS, LIKELY_SSL_SERVICES, "tcp", "sctp")
|
||||
port_or_service(LIKELY_SSL_PORTS, LIKELY_SSL_SERVICES, {"tcp", "sctp"})(host, port)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user