Skip to content

Commit

Permalink
Merge branch 'naomori-fix_sd_entries'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamores committed Jan 15, 2017
2 parents 4a114a2 + d84df1a commit 4ba1e99
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sd_entries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ function p_sd_ents.dissector(buf,pinfo,root)
local e_len = buf(offset,4):uint()
offset = offset + 4

-- parse entries
while offset < e_len do
offset = offset + parse_entries(root,buf(offset,e_len))
-- parse entries (NOTE : some extra variables to easen understanding)
local e_len_parsed = 0
while e_len_parsed < e_len do
local i_parse = parse_entries(root,buf(offset,(e_len-e_len_parsed)))
e_len_parsed = e_len_parsed + i_parse
offset = offset + i_parse
end
end

Expand Down

0 comments on commit 4ba1e99

Please sign in to comment.