mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix for forgotten endian-modifier (caused errors on Solaris) -- Stephane Rose pointed it out
This commit is contained in:
parent
70275c69c3
commit
75b44c30ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue