1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +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