From 3bb6062ede73d8d3a9f534be6949fe1bb9352d3a Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 7 Sep 2019 22:43:47 +0000 Subject: [PATCH] Use a more accurate variable name --- nselib/msrpctypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("