1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

Removes the bug so as to compare cmd fixes #381

This commit is contained in:
abhishek
2016-05-24 19:23:17 +00:00
parent 168ac74f40
commit 4d67d58d04

View File

@@ -410,7 +410,7 @@ Response = {
return true, Response.Addr:new(data, version)
elseif ( "inv\0\0\0\0\0\0\0\0\0" == cmd ) then
return true, Response.Inv:new(data)
elseif ( "alert\0\0\0\0\0") then
elseif ( "alert\0\0\0\0\0" == cmd ) then
return true, Response.Alert:new(data)
else
return false, ("Unknown command (%s)"):format(cmd)