From cc12a6ada6b60fab8ca33981d40ba73472659748 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Thu, 2 Jul 2015 19:02:11 +0200 Subject: [PATCH] RPC: do not add a protocol without dissection function to the dissector table This seems to be a typo Bug: 11327 Change-Id: I0182003b77f0deba9421002f5626175af30125f5 Reviewed-on: https://code.wireshark.org/review/9467 Reviewed-by: Pascal Quantin Reviewed-by: Michael Mann --- epan/dissectors/packet-rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-rpc.c b/epan/dissectors/packet-rpc.c index c4347ef374..ff2abefdc0 100644 --- a/epan/dissectors/packet-rpc.c +++ b/epan/dissectors/packet-rpc.c @@ -495,7 +495,7 @@ rpc_init_proc_table(int proto, guint prog, guint vers, const vsff *proc_table, new_create_dissector_handle_with_name(proc->dissect_call, proto, proc->strptr)); } - if (proc->dissect_reply == NULL) + if (proc->dissect_reply != NULL) { dissector_add_custom_table_handle("rpc.reply", g_memdup(&key, sizeof(rpc_proc_info_key)), new_create_dissector_handle_with_name(proc->dissect_reply, proto, proc->strptr));