mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 08:41:34 +00:00
Lua strings are 1-indexed. This is not a bug for now, but is incorrect.
This commit is contained in:
@@ -106,7 +106,7 @@ end
|
||||
|
||||
-- extract time from ServerHello response
|
||||
local extract_time = function(response)
|
||||
local i, record = tls.record_read(response, 0)
|
||||
local i, record = tls.record_read(response, 1)
|
||||
if record == nil then
|
||||
stdnse.debug("Unknown response from server")
|
||||
return nil
|
||||
|
||||
@@ -106,7 +106,7 @@ end
|
||||
--@args response Response to parse.
|
||||
--@return results List of found protocols.
|
||||
local check_npn = function(response)
|
||||
local i, record = tls.record_read(response, 0)
|
||||
local i, record = tls.record_read(response, 1)
|
||||
if record == nil then
|
||||
stdnse.debug1("Unknown response from server")
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user