aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-11-07 15:16:23 +0100
committerAnders Broman <a.broman58@gmail.com>2017-11-07 15:52:31 +0000
commit0c1ea1cee1a3b5f3ad9e176591bbad58b2b01ad0 (patch)
treed339ae5f5a41f9b44e0066bfb17464d5815b95bb
parent62e81c5846afab51757eb48826ac02522e9864f3 (diff)
fcp: create conversation if it doesn't exist.
Change-Id: I0bcc17900a9379d9f9d1828b834c2116e1199bf6 Ping-Bug: 14168 Reviewed-on: https://code.wireshark.org/review/24277 Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-fcp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c
index 593dd20..111cfe2 100644
--- a/epan/dissectors/packet-fcp.c
+++ b/epan/dissectors/packet-fcp.c
@@ -660,10 +660,9 @@ dissect_fcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
fcp_iu_val, "Unknown 0x%02x"));
fcp_tree = proto_item_add_subtree(ti, ett_fcp);
- fc_conv = find_conversation_pinfo(pinfo, 0);
- if (fc_conv != NULL) {
- fcp_conv_data = (fcp_conv_data_t *)conversation_get_proto_data(fc_conv, proto_fcp);
- }
+ fc_conv = find_or_create_conversation(pinfo);
+ fcp_conv_data = (fcp_conv_data_t *)conversation_get_proto_data(fc_conv, proto_fcp);
+
if (!fcp_conv_data) {
fcp_conv_data = wmem_new(wmem_file_scope(), fcp_conv_data_t);
fcp_conv_data->luns = wmem_map_new(wmem_file_scope(), g_direct_hash, g_direct_equal);