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:
dmiller 2014-02-20 21:30:05 +00:00
parent a72faf3906
commit c497ef4679

View file

@ -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