aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-22 02:48:55 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-22 02:48:55 +0000
commit604fd1f1c52541ea03f771748fc5cba4c92c037c (patch)
tree9066ee562bc2e07ccfecabe9ade44e691b6310c1 /epan/dissectors
parentd85feecdd85b174ddedaff93d4ac8f6dc3d5ab13 (diff)
Try to eliminate VS Code Analysis warning: warning C6385: Invalid data: accessing 'hf_packetbb_addr_value', the readable size is '16' bytes, but '4004' bytes might be read
svn path=/trunk/; revision=47204
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-packetbb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-packetbb.c b/epan/dissectors/packet-packetbb.c
index dbc4dc7492..ff98ab256c 100644
--- a/epan/dissectors/packet-packetbb.c
+++ b/epan/dissectors/packet-packetbb.c
@@ -474,10 +474,12 @@ static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offse
addrValue_item = proto_tree_add_ether(addr_tree, hf_packetbb_addr_value[addressType],
tvb, mid_index, block_index + block_length - mid_index, addr);
break;
- default:
+ case 3:
addrValue_item = proto_tree_add_bytes(addr_tree, hf_packetbb_addr_value[addressType],
tvb, mid_index, block_index + block_length - mid_index, addr);
break;
+ default:
+ break;
}
addrValue_tree = proto_item_add_subtree(addrValue_item, ett_packetbb_addr_value);