mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 07:11:37 +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
|
-- extract time from ServerHello response
|
||||||
local extract_time = function(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
|
if record == nil then
|
||||||
stdnse.debug("Unknown response from server")
|
stdnse.debug("Unknown response from server")
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ end
|
|||||||
--@args response Response to parse.
|
--@args response Response to parse.
|
||||||
--@return results List of found protocols.
|
--@return results List of found protocols.
|
||||||
local check_npn = function(response)
|
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
|
if record == nil then
|
||||||
stdnse.debug1("Unknown response from server")
|
stdnse.debug1("Unknown response from server")
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user