aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-sll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sll.c b/epan/dissectors/packet-sll.c
index d6c1c9c79c..4907bea69b 100644
--- a/epan/dissectors/packet-sll.c
+++ b/epan/dissectors/packet-sll.c
@@ -207,10 +207,12 @@ dissect_sll(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
6, 6, src);
}
break;
+ case 0:
+ break;
default:
if (tree) {
proto_tree_add_item(fh_tree, hf_sll_src_other, tvb,
- 6, halen, FALSE);
+ 6, halen > 8 ? 8 : halen, FALSE);
}
break;
}