diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-06-22 15:38:17 -0400 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-06-22 19:53:25 +0000 |
commit | ba2478845cf0db858a209f94848474e84cf50bf6 (patch) | |
tree | 8959b287346b079daef27d735aec136ef6dbce0f /epan | |
parent | 7d67af661a466dde4416c0583bbfa0250b14560f (diff) | |
download | wireshark-ba2478845cf0db858a209f94848474e84cf50bf6.tar.gz |
HTTP2: Fix compilation without HAVE_NGHTTP2.
Change-Id: I7319a9d244e541c18d3492c3ca5eac1dff8e1313
Reviewed-on: https://code.wireshark.org/review/22360
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http2.c b/epan/dissectors/packet-http2.c index e70607a8bc..1c3b1c3872 100644 --- a/epan/dissectors/packet-http2.c +++ b/epan/dissectors/packet-http2.c @@ -343,6 +343,7 @@ static gint ett_http2_encoded_entity = -1; static gint ett_http2_body_fragment = -1; static gint ett_http2_body_fragments = -1; +#ifdef HAVE_NGHTTP2 static const fragment_items http2_body_fragment_items = { /* Fragment subtrees */ &ett_http2_body_fragment, @@ -362,7 +363,6 @@ static const fragment_items http2_body_fragment_items = { "Body fragments" }; -#ifdef HAVE_NGHTTP2 /* Due to HPACK compression, we may get lots of relatively large header fields (e.g., 4KiB). Allocating each of them requires lots of memory. The maximum compression is achieved in HPACK by |