1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Populate ID Authority with the correct value. See #1720

This commit is contained in:
nnposter
2019-09-01 03:53:04 +00:00
parent 729260e2d1
commit ef2825b3bc
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#1720] Function marshall_dom_sid2 in library msrpctypes was not
correctly populating ID Authority. [nnposter]
o [NSE][GH#1720] Unmarshalling functions in library msrpctypes were attempting
arithmetic on a nil argument. [Ivan Ivanov, nnposter]

View File

@@ -1655,7 +1655,7 @@ function marshall_dom_sid2(sid)
result = {
-- TODO: Is the first 32-bit integer here supposed to be num_auths, or some
-- other count value?
string.pack("<I4BB>I6", sid_array.num_auths, sid_array.sid_rev_num, sid_array.num_auths, sid_array.authority),
string.pack("<I4BB>I6", sid_array.num_auths, sid_array.sid_rev_num, sid_array.num_auths, sid_array.authority_high),
}
for i = 1, sid_array['num_auths'], 1 do
result[#result+1] = string.pack("<I4", sid_array['sub_auths'][i])