aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-epl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c
index 0d3734a4f6..865b4142ce 100644
--- a/epan/dissectors/packet-epl.c
+++ b/epan/dissectors/packet-epl.c
@@ -4296,7 +4296,7 @@ dissect_epl_sdo_command_write_multiple_by_index(struct epl_convo *convo, proto_t
if ( remlength < EPL_SOA_EPLV_OFFSET )
break;
- size = remlength - EPL_SOA_EPLV_OFFSET;
+ size = remlength - EPL_SOA_EPLV_OFFSET - padding;
lastentry = TRUE;
}
else
@@ -4638,7 +4638,7 @@ dissect_epl_sdo_command_read_multiple_by_index(struct epl_convo *convo, proto_tr
if ( remlength < EPL_SOA_EPLV_OFFSET )
break;
- size = remlength - EPL_SOA_EPLV_OFFSET;
+ size = remlength - EPL_SOA_EPLV_OFFSET - padding;
lastentry = TRUE;
}
else