1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Lua strings are 1-indexed. This is not a bug for now, but is incorrect.

This commit is contained in:
dmiller
2016-06-18 15:49:18 +00:00
parent 540494a92d
commit a2ed5c4a30
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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