diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-02-18 19:10:50 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-02-18 19:10:50 +0000 |
commit | fe620c9d12a22e23d0e143df82bc34ec6182b1d6 (patch) | |
tree | 75314321b03a01add80be7866a7d303bc1c8f250 /epan | |
parent | 7abeb02747a08671827dee1c2a6d6ff181cfa8d3 (diff) |
Add an expert item about AVP:s without "data".
svn path=/trunk/; revision=24377
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index beabbd4b29..091a5d6e07 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -402,6 +402,9 @@ static int dissect_diameter_avp(diam_ctx_t* c, tvbuff_t* tvb, int offset) { if ( len == (guint32)(vendor_flag ? 12 : 8) ) { /* Data is empty so return now */ + proto_item* iu = proto_tree_add_text(avp_tree,tvb,offset,0,"No data"); + expert_add_info_format(c->pinfo, iu, PI_UNDECODED, PI_WARN, "Data is empty"); + PROTO_ITEM_SET_GENERATED(iu); return len; } |