aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tftp.c
diff options
context:
space:
mode:
authorRoman-Koshelev <roman.koshelev@bk.ru>2021-03-30 19:32:05 +0300
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-03-31 19:41:50 +0000
commit966347c441a090b124af11e471835a3202210e15 (patch)
treeb5ea7996d9d4d8a576e3cc1ddaf5d0cfb4c7e18b /epan/dissectors/packet-tftp.c
parent81d1c8dbc88faca480f34ebf7b6b807e69d2abe2 (diff)
TFTP: Added conversation dissector check
To avoid reacting to other people's conversations (e.g. udp)
Diffstat (limited to 'epan/dissectors/packet-tftp.c')
-rw-r--r--epan/dissectors/packet-tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tftp.c b/epan/dissectors/packet-tftp.c
index f138c7b38a..fc2a17302a 100644
--- a/epan/dissectors/packet-tftp.c
+++ b/epan/dissectors/packet-tftp.c
@@ -895,7 +895,8 @@ dissect_tftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
}
if (conversation == NULL) {
conversation = find_conversation_pinfo(pinfo, 0);
- if (conversation == NULL) return 0;
+ if (conversation == NULL || conversation_get_dissector(conversation, pinfo->num) != tftp_handle)
+ return 0;
}
}