From 2447b390d2ef9e8d6f69447b96ab8395145c2d7f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 3 Nov 2005 04:35:39 +0000 Subject: [PATCH] "dissect_cmp_http()" doesn't check for a valid packet (it doesn't need to, it's selected by the media-type string, not something unreliable such as a port number), and doesn't return anything, so give it the right type and don't declare it as a "new-style" dissector. svn path=/trunk/; revision=16387 --- epan/dissectors/packet-cmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-cmp.c b/epan/dissectors/packet-cmp.c index c3d40d2fda..b96e3586d2 100644 --- a/epan/dissectors/packet-cmp.c +++ b/epan/dissectors/packet-cmp.c @@ -1466,7 +1466,7 @@ dissect_cmp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) return tvb_length(tvb); } -static int +static void dissect_cmp_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) { proto_item *item=NULL; @@ -2028,7 +2028,7 @@ void proto_reg_handoff_cmp(void) { dissector_handle_t cmp_http_handle; dissector_handle_t cmp_tcp_handle; - cmp_http_handle = new_create_dissector_handle(dissect_cmp_http, proto_cmp); + cmp_http_handle = create_dissector_handle(dissect_cmp_http, proto_cmp); dissector_add_string("media_type", "application/pkixcmp", cmp_http_handle); cmp_tcp_handle = new_create_dissector_handle(dissect_cmp_tcp, proto_cmp);