diff options
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r-- | epan/dissectors/packet-smtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c index 8b9f367e9e..fc4f1c9fb3 100644 --- a/epan/dissectors/packet-smtp.c +++ b/epan/dissectors/packet-smtp.c @@ -528,6 +528,10 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ * Check if we have reached end of the data chunk. */ session_state->msg_read_len += tvb_reported_length_remaining(tvb, loffset); + /* + * Since we're grabbing the rest of the packet, update the offset accordingly + */ + next_offset = tvb_reported_length(tvb); if (session_state->msg_read_len == session_state->msg_tot_len) { /* |