1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-03 12:06:35 +00:00

Avoid blank output in tls-nextprotoneg when server doesn't offer any protocols

This commit is contained in:
dmiller
2015-08-06 21:10:35 +00:00
parent 725ace524f
commit 9fbad88213

View File

@@ -116,7 +116,12 @@ local check_npn = function(response)
table.insert(results, protocol)
end
return results
if next(results) then
return results
else
stdnse.debug1("Server supports TLS NPN extension, but no protocols were offered.")
return "<empty>"
end
else
stdnse.debug1("Server response was not server_hello")
return nil