aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smcr.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-09-22 15:25:07 +0200
committerAnders Broman <a.broman58@gmail.com>2016-09-22 14:13:12 +0000
commit0b3d6793681fb351cd6e726d3323839cb0d86e64 (patch)
treefd5bed184944a8c2471d4b3c1504b9201102fed4 /epan/dissectors/packet-smcr.c
parentd29b369bdcdf5bbc3f22b46e3ba0734c630dd3ad (diff)
Don't call proto_register_field_array() or expert_register_protocol() with
proto = -1 Change-Id: I60f899ad748b5d3e17f237552af7d2dbc8f27bd2 Reviewed-on: https://code.wireshark.org/review/17864 Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-smcr.c')
-rw-r--r--epan/dissectors/packet-smcr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smcr.c b/epan/dissectors/packet-smcr.c
index d7b4cecc5b..f92910786f 100644
--- a/epan/dissectors/packet-smcr.c
+++ b/epan/dissectors/packet-smcr.c
@@ -1419,10 +1419,12 @@ proto_register_smcr(void)
&ett_rmbe_ctrl_peer_conn_state_flag
};
- proto_register_field_array(proto_smcr, hf, array_length(hf));
- proto_register_subtree_array(ett, array_length(ett));
proto_smcr = proto_register_protocol("Shared Memory Communications - RDMA",
"SMCR", "smcr");
+
+ proto_register_field_array(proto_smcr, hf, array_length(hf));
+ proto_register_subtree_array(ett, array_length(ett));
+
smcr_tcp_handle = register_dissector("smcr", dissect_smcr_tcp, proto_smcr);
}