summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-04-09 22:28:00 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-04-09 22:28:00 +0000
commit4ab6240b4ed30f4e12e7156bd74820d491755777 (patch)
tree1029f9c3c5e1e7305fd4fb93df3c2ececc996d49 /plugins
parentc51a5e9628f2d7bd01b124a78f3ff58f41410ca0 (diff)
downloadwireshark-4ab6240b4ed30f4e12e7156bd74820d491755777.tar.gz
Coverity CID 751101: Logically Dead Code
my assumption is that this was a typo check should be for u8BlockVersionLow>2 there's code to handle u8BlockVersionLow 0, 1 and 2 svn path=/trunk/; revision=48805
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profinet/packet-dcerpc-pn-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profinet/packet-dcerpc-pn-io.c b/plugins/profinet/packet-dcerpc-pn-io.c
index 293eae0393..0554c42532 100644
--- a/plugins/profinet/packet-dcerpc-pn-io.c
+++ b/plugins/profinet/packet-dcerpc-pn-io.c
@@ -4475,7 +4475,7 @@ dissect_PDInterfaceMrpDataReal_block(tvbuff_t *tvb, int offset,
int endoffset = offset + u16BodyLength;
/* added blockversion 1 */
- if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) {
+ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 2) {
expert_add_info_format(pinfo, item, PI_UNDECODED, PI_WARN,
"Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow);
return offset;