Fix pcall usage in rdp.lua. Closes #3593. Fixes #3592.

This commit is contained in:
dmiller 2026-11-23 19:01:52 +00:00
parent 6e5d1dcede
commit 843b78e694
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#3593] Fixed an issue causing RDP scripts to crash with `attempt to
call a table value`. [@ttrampus]
o [NSE][GH#3307] ASN.1 sequence encoding in the iec61850mms library was broken.
[RyugaXhypeR]

View file

@ -441,9 +441,9 @@ Comm = {
local itut_code = string.byte(data, 6)
if ( itut_code == 0xD0 ) then
stdnse.debug2("RDP: Received ConnectionConfirm response")
return pcall(Response.ConnectionConfirm.parse(data))
return pcall(Response.ConnectionConfirm.parse, data)
elseif ( itut_code == 0xF0 ) then
return pcall(Response.MCSConnectResponse.parse(data))
return pcall(Response.MCSConnectResponse.parse, data)
elseif itut_code ~= nil then
stdnse.debug1(("comm:exch - Unknown itut_code: %s"):format(itut_code))
end