Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 23873: /trunk/gtk/ /trunk/gtk/: menu
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 16 Dec 2007 14:28:16 -0800
Stig Bjørlykke wrote:

The hfinfo->strings contains a protocol_t when handling a FT_PROTOCOL, but hfinfo->parent can be -1 in other cases. I suppose all elements created with proto_tree_add_text, which uses the static hf entry in proto.c, will crash wireshark when selected in the Protocol Details.

Yes.

What I think we want is the selected protocol tree item; if it's an FT_PROTOCOL, disable that protocol, otherwise walk up the protocol tree until we find an FT_PROTOCOL, and disable that.