o [NSE] Fixed bug in rpc.lua library that incorrectly required file handles

to be 32 octects when calling the ReadDir function. The bug was reported by
  Djalal Harouni. [Patrik]
This commit is contained in:
patrik 2010-04-02 17:58:32 +00:00
parent baeb2e8f98
commit f137a07847
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*-
o [NSE] Fixed bug in rpc.lua library that incorrectly required file handles
to be 32 octects when calling the ReadDir function. The bug was reported by
Djalal Harouni. [Patrik]
o Removed --interactive mode, a miniature shell whose primary purpose
was to hide command line arguments from the process list. It had
been broken (would segfault during the second scan) since before May

View file

@ -836,8 +836,8 @@ NFS = {
local pos, data, _ = 1, "", ""
local header, response = {}, {}
if not file_handle or file_handle:len() ~= 32 then
return false, "Incorrect filehandle received"
if ( not(file_handle) ) then
return false, "No filehandle received"
end
if ( self.version == 3 ) then
@ -882,7 +882,7 @@ NFS = {
return false, ("Version %d not supported"):format(self.version)
end
if not file_handle or file_handle:len() ~= 32 then
if ( not(file_handle) or file_handle:len() ~= 32 ) then
return false, "Incorrect filehandle received"
end