aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tr.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-06-16 20:14:51 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-06-16 20:14:51 +0000
commit6a971ea03c4d73bcf28ade8d63cd6879e662dfeb (patch)
tree3e105abf0422259690052d0023bc8c2386299695 /packet-tr.c
parentb39ceabd921912a5121b4ff424e22852c6ca57cf (diff)
downloadwireshark-6a971ea03c4d73bcf28ade8d63cd6879e662dfeb.tar.gz
wireshark-6a971ea03c4d73bcf28ade8d63cd6879e662dfeb.tar.bz2
wireshark-6a971ea03c4d73bcf28ade8d63cd6879e662dfeb.zip
Found a small bug in how the Token-Ring code tried to be smart and looked
for RIF bytes w/o the source-route bit being set. svn path=/trunk/; revision=316
Diffstat (limited to 'packet-tr.c')
-rw-r--r--packet-tr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-tr.c b/packet-tr.c
index ee1b49a697..fce7be4279 100644
--- a/packet-tr.c
+++ b/packet-tr.c
@@ -2,7 +2,7 @@
* Routines for Token-Ring packet disassembly
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-tr.c,v 1.13 1999/06/14 20:30:06 gram Exp $
+ * $Id: packet-tr.c,v 1.14 1999/06/16 20:14:51 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -94,7 +94,7 @@ capture_tr(const u_char *pd, guint32 cap_len, packet_counts *ld) {
/* sometimes we have a RCF but no RIF... half source-routed? */
/* I'll check for 2 bytes of RIF and the 0x70 byte */
- if (!source_routed) {
+ if (!source_routed && trn_rif_bytes > 0) {
if (trn_rif_bytes == 2) {
source_routed = 1;
}
@@ -234,7 +234,7 @@ dissect_tr(const u_char *pd, frame_data *fd, proto_tree *tree) {
/* sometimes we have a RCF but no RIF... half source-routed? */
/* I'll check for 2 bytes of RIF and the 0x70 byte */
- if (!source_routed) {
+ if (!source_routed && trn_rif_bytes > 0) {
if (trn_rif_bytes == 2) {
source_routed = 1;
}