aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-06-02 16:57:41 +0200
committerMichael Mann <mmann78@netscape.net>2014-06-02 16:23:02 +0000
commit13513a187b6c43095087d826e5fd967274e27e4a (patch)
tree192aeab803c9afa8c9a46fc3fb9a71ef5220dc40
parent1ca8d5f33f90aba6d5e3b752cd215c4d65849a80 (diff)
HTTP2 : Max value for type is now 0x0B (BLOCKED type), update the heuristic
Change-Id: I8de7b63ca90803f8fc6333bbe43aeb94459e6363 Reviewed-on: https://code.wireshark.org/review/1918 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-http2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-http2.c b/epan/dissectors/packet-http2.c
index 5790222afc..e25d88d06f 100644
--- a/epan/dissectors/packet-http2.c
+++ b/epan/dissectors/packet-http2.c
@@ -1016,8 +1016,8 @@ dissect_http2_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
{
if (tvb_memeql(tvb, 0, kMagicHello, MAGIC_FRAME_LENGTH) != 0) {
/* we couldn't find the Magic Hello (PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n)
- see if there's a valid frame type (0-10 are defined at the moment) */
- if (tvb_reported_length(tvb)<2 || tvb_get_guint8(tvb, 2)>10)
+ see if there's a valid frame type (0-11 are defined at the moment) */
+ if (tvb_reported_length(tvb)<2 || tvb_get_guint8(tvb, 2)>=HTTP2_BLOCKED)
return (FALSE);
}