1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Replace instances of bin.pack('A', x), which is equivalent to tostring(x), and a no-op on strings

This commit is contained in:
dmiller
2015-03-03 04:48:18 +00:00
parent 03110e7e89
commit e2bfa97920
6 changed files with 11 additions and 15 deletions

View File

@@ -1945,9 +1945,8 @@ NFS = {
return false, "FsStat: No filehandle received"
end
data = bin.pack("A", file_handle)
packet = comm:EncodePacket(nil, NFS.Procedure[comm.version].FSSTAT,
{type = Portmap.AuthType.UNIX}, data)
{type = Portmap.AuthType.UNIX}, file_handle)
if (not(comm:SendPacket(packet))) then
return false, "FsStat: Failed to send data"