diff options
Diffstat (limited to 'epan/dissectors/packet-nntp.c')
-rw-r--r-- | epan/dissectors/packet-nntp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nntp.c b/epan/dissectors/packet-nntp.c index 69b9f459bb..91f87db533 100644 --- a/epan/dissectors/packet-nntp.c +++ b/epan/dissectors/packet-nntp.c @@ -36,8 +36,8 @@ static gint ett_nntp = -1; #define TCP_PORT_NNTP 119 -static void -dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { const gchar *type; proto_tree *nntp_tree; @@ -101,6 +101,7 @@ dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = next_offset; } } + return tvb_captured_length(tvb); } void @@ -132,7 +133,7 @@ proto_reg_handoff_nntp(void) { dissector_handle_t nntp_handle; - nntp_handle = create_dissector_handle(dissect_nntp, proto_nntp); + nntp_handle = new_create_dissector_handle(dissect_nntp, proto_nntp); dissector_add_uint("tcp.port", TCP_PORT_NNTP, nntp_handle); } |