QUIC: fix trailing data after VN packet

The returned offset must be non-zero or the data dissector is invoked.

Change-Id: Iaff6e1f19fc94e17b41ad06a8be491fbec4835ba
Fixes: v2.9.0rc0-1797-g91c5942c93 ("QUIC: implement packet coalescing (draft >= 11)")
Reviewed-on: https://code.wireshark.org/review/29945
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Peter Wu 2018-10-01 00:42:21 +02:00 committed by Anders Broman
parent 92e2858fb1
commit bd1e404c62
1 changed files with 1 additions and 1 deletions

View File

@ -2218,7 +2218,7 @@ dissect_quic(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
guint8 long_packet_type = tvb_get_guint8(next_tvb, 0) & 0x7f;
guint32 version = tvb_get_ntohl(next_tvb, 1);
if (version == 0) {
dissect_quic_version_negotiation(next_tvb, pinfo, quic_tree, quic_packet);
offset += dissect_quic_version_negotiation(next_tvb, pinfo, quic_tree, quic_packet);
break;
}
if (long_packet_type == QUIC_LPT_RETRY) {