Skip to content

Commit

Permalink
Merge pull request #15 from TomerShalish/bugfix/multiple-someip-no-data
Browse files Browse the repository at this point in the history
Multiple someip PDUs in one packet with no data
  • Loading branch information
geynis authored Oct 22, 2019
2 parents 1bd0c39 + 54cfbf7 commit eebc7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion someip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ local function someip_pdu_dissect(buf,pinfo,root)
--
if (buf(0,4):uint() == 0xffff8100) and (buf:len() > SOMEIP_HDR_LENGTH) then
Dissector.get("sd"):call(buf(SOMEIP_HDR_LENGTH):tvb(),pinfo,root)
elseif (buf:len() > SOMEIP_HDR_LENGTH) then
elseif (get_someip_length(buf,pinfo,0) > SOMEIP_HDR_LENGTH) then
Dissector.get("data"):call(buf(SOMEIP_HDR_LENGTH, get_someip_length(buf,pinfo,0) - SOMEIP_HDR_LENGTH):tvb(),pinfo,root)
end

Expand Down

0 comments on commit eebc7df

Please sign in to comment.