mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Lua strings are 1-indexed. This is not a bug for now, but is incorrect.
This commit is contained in:
parent
540494a92d
commit
a2ed5c4a30
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue