mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
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:
parent
baeb2e8f98
commit
f137a07847
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue