mirror of
https://github.com/nmap/nmap.git
synced 2026-10-09 05:44:36 +00:00
Fix a bug introduced in r32728 in upnp.lua
When payload was changed to a single string instead of a strbuf object, calls to strbuf.dump() were not removed.
This commit is contained in:
parent
a72faf3906
commit
c497ef4679
1 changed files with 2 additions and 3 deletions
|
|
@ -37,7 +37,6 @@ local http = require "http"
|
|||
local ipOps = require "ipOps"
|
||||
local nmap = require "nmap"
|
||||
local stdnse = require "stdnse"
|
||||
local strbuf = require "strbuf"
|
||||
local string = require "string"
|
||||
local table = require "table"
|
||||
local target = require "target"
|
||||
|
|
@ -105,9 +104,9 @@ Comm = {
|
|||
local status, err
|
||||
|
||||
if ( self.mcast ) then
|
||||
status, err = self.socket:sendto( self.host, self.port, strbuf.dump(payload) )
|
||||
status, err = self.socket:sendto( self.host, self.port, payload )
|
||||
else
|
||||
status, err = self.socket:send( strbuf.dump(payload) )
|
||||
status, err = self.socket:send( payload )
|
||||
end
|
||||
|
||||
if ( not(status) ) then return false, err end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue