Skip to content

Commit

Permalink
ws: Fixed parsing of bytes() interpreting a hexadecimal string as raw…
Browse files Browse the repository at this point in the history
… data
  • Loading branch information
Snaipe committed Nov 5, 2016
1 parent e383661 commit 296130a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wssdl/wireshark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ local dissect_type = {
error('wssdl: field ' .. utils.quote(field._name) ..
' is an unaligned "bytes" field, which is not supported.')
end
return raw, tostring(raw:bytes()), sz
return raw, Struct.fromhex(tostring(raw:bytes())), sz
end;

signed = dissect_int_base('i', 'e', 'int');
Expand Down

0 comments on commit 296130a

Please sign in to comment.