1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

minor fix in stun-version to remove a warning from ipOps.fromdword

indentation fix in stun-version
This commit is contained in:
patrik
2012-07-24 12:05:57 +00:00
parent be858f4a7d
commit 7880043ee2
2 changed files with 4 additions and 2 deletions

View File

@@ -132,7 +132,9 @@ Attribute = {
local function parseAddress(data, pos)
local _, addr = nil, {}
pos, _, addr.family, addr.port, addr.ip = bin.unpack("<CCSI", data, pos)
addr.ip = ipOps.fromdword(addr.ip)
if ( addr.ip ) then
addr.ip = ipOps.fromdword(addr.ip)
end
return addr
end