forked from osmocom/wireshark
Fix minor issue introduced with conversion to new expert API in r51688.
Specifically, proto_tree_add_expert() must take an actual tree node (for example from proto_item_add_subtree()) and cannot take just any old item node. The original intent (before the conversion) appeared to be just to put it on the tree, so do that. Another assertion gone from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9406 svn path=/trunk/; revision=53456
This commit is contained in:
parent
bd625113ea
commit
a252026213
|
@ -2512,7 +2512,7 @@ dissect_eigrp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _
|
|||
|
||||
size = tvb_get_ntohs(tvb, offset + 2);
|
||||
if (size == 0) {
|
||||
proto_tree_add_expert(ti, pinfo, &ei_eigrp_tlv_len, tvb, offset, -1);
|
||||
proto_tree_add_expert(eigrp_tree, pinfo, &ei_eigrp_tlv_len, tvb, offset, -1);
|
||||
return(tvb_length(tvb));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue