mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
Fix for forgotten endian-modifier (caused errors on Solaris) -- Stephane Rose pointed it out
This commit is contained in:
@@ -241,7 +241,7 @@ function bind(smbstate, interface_uuid, interface_version, transfer_syntax)
|
||||
end
|
||||
|
||||
-- If we made it this far, then we have a valid Bind() result. Pull out some more parameters.
|
||||
pos, result['max_transmit_frag'], result['max_receive_frag'], result['assoc_group'], result['secondary_address_length'] = bin.unpack("SSIS", data, pos)
|
||||
pos, result['max_transmit_frag'], result['max_receive_frag'], result['assoc_group'], result['secondary_address_length'] = bin.unpack("<SSIS", data, pos)
|
||||
if(result['secondary_address_length'] == nil) then
|
||||
return false, "MSRPC: ERROR: Ran off the end of SMB packet; likely due to server truncation"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user