Wireshark-bugs: [Wireshark-bugs] [Bug 8496] Lua doesn't provide all field values when there are

Date: Mon, 18 Mar 2013 20:41:30 +0000

Comment # 1 on bug 8496 from
Ugh, pressed submit before being done.
I meant to add one more thing - the reason the same_name_next thing matters s
because in Field__call() in wslua_field.c, the for-loop is supposed to iterate
over every field/hfinfo type of the same abbreviation.  It does that by doing:

    for (;in;in = in->same_name_next)

But the same_name_next is NULL for duplicate hfinfo's, because of the odd
behavior in proto_register_field_init() discussed in the comment above.  If I
change it to this instead:

    for (;in;in = in->same_name_prev)

It works. But I'm not sure whether that's just working around the root cause
bug, or if that's really the way proto_register_field_init() was intended to
behave.


You are receiving this mail because:
  • You are watching all bug changes.