diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2017-07-22 13:19:24 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-07-22 12:15:49 +0000 |
commit | 4107f6bca7b2bc58e6570501123f3d500ec3905b (patch) | |
tree | ab4f773ca264e1fedaa74f87ff6adc3df573bb90 /epan | |
parent | 04ba4bc070466c302b994968d527da5dbe390287 (diff) |
HTTP2: Fix missing ifdef HAVE_NGHTTP2
media_type_dissector_table is only defined with HAVE_NGHTTP2
Change-Id: I489e04f3d3066f2edf5c656b158c38c3dae84fb6
Reviewed-on: https://code.wireshark.org/review/22760
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-http2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-http2.c b/epan/dissectors/packet-http2.c index 7b5886669b..8b5787a691 100644 --- a/epan/dissectors/packet-http2.c +++ b/epan/dissectors/packet-http2.c @@ -2591,7 +2591,9 @@ static int http2_stats_tree_packet(stats_tree* st, packet_info* pinfo _U_, epan_ void proto_reg_handoff_http2(void) { +#ifdef HAVE_NGHTTP2 media_type_dissector_table = find_dissector_table("media_type"); +#endif dissector_add_for_decode_as_with_preference("tcp.port", http2_handle); |