diff options
author | Evan Huus <eapache@gmail.com> | 2013-11-20 22:51:14 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-11-20 22:51:14 +0000 |
commit | a2520262134a2d26cf6bf07bbafc4e657eef4e85 (patch) | |
tree | 352df22589cabafc13c309bafffe058f473266da /epan/dissectors/packet-eigrp.c | |
parent | bd625113ea81ae01299028c37ee2ce7c69fb6f8f (diff) |
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
Diffstat (limited to 'epan/dissectors/packet-eigrp.c')
-rw-r--r-- | epan/dissectors/packet-eigrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-eigrp.c b/epan/dissectors/packet-eigrp.c index 3958d25bb5..21565383e6 100644 --- a/epan/dissectors/packet-eigrp.c +++ b/epan/dissectors/packet-eigrp.c @@ -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)); } |