aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-02-18 19:10:50 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-02-18 19:10:50 +0000
commitfe620c9d12a22e23d0e143df82bc34ec6182b1d6 (patch)
tree75314321b03a01add80be7866a7d303bc1c8f250
parent7abeb02747a08671827dee1c2a6d6ff181cfa8d3 (diff)
Add an expert item about AVP:s without "data".
svn path=/trunk/; revision=24377
-rw-r--r--epan/dissectors/packet-diameter.c3
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;
}