diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-18 22:25:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-18 22:25:40 +0000 |
commit | e7aa22129ffdb094b1d7b6c64f4852ed5fe80fc8 (patch) | |
tree | c212f55252d6c3002b5602d4e527e2827d466a3b /packet-m2pa.c | |
parent | 1606d119fbe15d5d14635d1deff1726b0c183e30 (diff) | |
download | wireshark-e7aa22129ffdb094b1d7b6c64f4852ed5fe80fc8.tar.gz wireshark-e7aa22129ffdb094b1d7b6c64f4852ed5fe80fc8.tar.bz2 wireshark-e7aa22129ffdb094b1d7b6c64f4852ed5fe80fc8.zip |
From Michael Tuexen: show the filler only if present.
svn path=/trunk/; revision=5505
Diffstat (limited to 'packet-m2pa.c')
-rw-r--r-- | packet-m2pa.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-m2pa.c b/packet-m2pa.c index aa5bcccaab..aa78c1973a 100644 --- a/packet-m2pa.c +++ b/packet-m2pa.c @@ -6,7 +6,7 @@ * Copyright 2001, 2002, Jeff Morriss <jeff.morriss[AT]ulticom.com>, * updated by Michael Tuexen <michael.tuexen[AT]icn.siemens.de> * - * $Id: packet-m2pa.c,v 1.8 2002/04/08 19:18:11 guy Exp $ + * $Id: packet-m2pa.c,v 1.9 2002/05/18 22:25:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -176,11 +176,12 @@ dissect_m2pa_link_status_message(tvbuff_t *message_data_tvb, proto_tree *m2pa_tr guint16 filler_length; if (m2pa_tree) { - status = tvb_get_ntohl (message_data_tvb, STATUS_OFFSET); + status = tvb_get_ntohl (message_data_tvb, STATUS_OFFSET); filler_length = tvb_length(message_data_tvb) - STATUS_LENGTH; proto_tree_add_uint(m2pa_tree, hf_m2pa_status, message_data_tvb, STATUS_OFFSET, STATUS_LENGTH, status); - proto_tree_add_bytes(m2pa_tree, hf_m2pa_filler, message_data_tvb, FILLER_OFFSET, filler_length, - tvb_get_ptr(message_data_tvb, FILLER_OFFSET, filler_length)); + if (filler_length > 0) + proto_tree_add_bytes(m2pa_tree, hf_m2pa_filler, message_data_tvb, FILLER_OFFSET, filler_length, + tvb_get_ptr(message_data_tvb, FILLER_OFFSET, filler_length)); }; } |