mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Avoid blank output in tls-nextprotoneg when server doesn't offer any protocols
This commit is contained in:
parent
725ace524f
commit
9fbad88213
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue