1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 01:19:03 +00:00

Fixed errors found by nse_check_globals.

This commit is contained in:
perdo
2012-06-06 22:23:02 +00:00
parent 14dc780226
commit 5ac6c7d64a
109 changed files with 196 additions and 128 deletions

View File

@@ -454,6 +454,7 @@ local function record_read(buffer, i)
elseif h["type"] == "handshake" then
-- Parse body.
j, b["type"] = bin.unpack("C", buffer, j)
local _
j, _ = bin.unpack("A3", buffer, j)
-- Convert to human-readable form.
@@ -799,7 +800,7 @@ local filltable = function(filename,table)
-- Comments takes up a whole line
if not l:match("#!comment:") then
lsplit=stdnse.strsplit("%s+", l)
local lsplit=stdnse.strsplit("%s+", l)
if cipherstrength[lsplit[2]] then
table[lsplit[1]] = lsplit[2]
else