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 <pascal.quantin@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Pascal Quantin 2015-07-02 19:02:11 +02:00 committed by Michael Mann
parent 9421af309b
commit cc12a6ada6
1 changed files with 1 additions and 1 deletions

View File

@ -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));