CIP Safety: base packet length can be used

Slight adjustment to I394fa91a5cfa1700fb12441d4884c0367b39df8b

Change-Id: Id097a39265f49a79f3d39855ef6b5c95ffe8c4f1
Reviewed-on: https://code.wireshark.org/review/24654
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2017-11-29 20:03:22 -05:00
parent f6521b295d
commit 3d6da018e7
1 changed files with 1 additions and 1 deletions

View File

@ -1511,7 +1511,7 @@ dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int
/* compute the base packet length to determine what is actual I/O data */
base_length = multicast ? 12 : 6;
if (item_length <= base_length) {
if (item_length < base_length) {
expert_add_info(pinfo, item, &ei_mal_io);
return;
}