diff --git a/nselib/msrpctypes.lua b/nselib/msrpctypes.lua index 0cc4fea1b..bb355b916 100644 --- a/nselib/msrpctypes.lua +++ b/nselib/msrpctypes.lua @@ -1636,7 +1636,7 @@ function marshall_dom_sid2(sid) pos = pos_next + 1 pos_next = string.find(sid, "-", pos) - sid_array.authority_high = tonumber(string.sub(sid, pos, pos_next - 1)) + sid_array.authority = tonumber(string.sub(sid, pos, pos_next - 1)) sid_array['sub_auths'] = {} i = 1 @@ -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("I6", sid_array.num_auths, sid_array.sid_rev_num, sid_array.num_auths, sid_array.authority_high), + string.pack("I6", sid_array.num_auths, sid_array.sid_rev_num, sid_array.num_auths, sid_array.authority), } for i = 1, sid_array['num_auths'], 1 do result[#result+1] = string.pack("