whitequark / zmtp-wireshark

A Wireshark dissector for ZMTP version 3.0 and later (ZeroMQ 4 and later)
http://rfc.zeromq.org/spec:23
MIT License
87 stars 23 forks source link

Fix assertion failure #3

Closed Lekensteyn closed 9 years ago

Lekensteyn commented 9 years ago

A certain capture was giving this warning:

epan/dissectors/packet-tcp.c:4162: failed assertion
"save_desegment_offset == pinfo->desegment_offset &&
save_desegment_len == pinfo->desegment_len

New-style dissectors (such as the LUA one) may return a number. Its meaning:

When zero, the dissector should not set desegment_offset and desegment_length since the data was rejected already. Just return no number, then all data will be considered part of this protocol. This is also documented at https://wiki.wireshark.org/Lua/Dissectors.

whitequark commented 9 years ago

Oh, that's why the dissection failed sometimes on me.