From c497ef46798ba99056577dbb29fc15b0a3922594 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 20 Feb 2014 21:30:05 +0000 Subject: [PATCH] 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. --- nselib/upnp.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nselib/upnp.lua b/nselib/upnp.lua index 41d56a231..0f84b839a 100644 --- a/nselib/upnp.lua +++ b/nselib/upnp.lua @@ -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