1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

Handle 'foo=,' case in ntp-info

This commit is contained in:
dmiller
2014-08-27 19:41:32 +00:00
parent 8e4f61725e
commit a4d51ff8d6

View File

@@ -77,7 +77,7 @@ local kvmatch = U.localize( {
lpeg.V "space"^0 * lpeg.V "kv" * lpeg.P ","^-1,
kv = lpeg.V "key" * lpeg.P "="^-1 * lpeg.V "value",
key = lpeg.C( (lpeg.V "alnum" + lpeg.S "_-.")^1 ),
value = U.escaped_quote() + lpeg.C((lpeg.P(1) - ",")^1),
value = U.escaped_quote() + lpeg.C((lpeg.P(1) - ",")^0),
} )
action = function(host, port)