aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tftp.c
diff options
context:
space:
mode:
authorRoman-Koshelev <roman.koshelev@bk.ru>2021-03-23 21:01:38 +0300
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-03-25 06:28:29 +0000
commit5e2080131d85a4d122f355171e32439922f0cce7 (patch)
treefc3990771c052b6185b9db600e273e9c6594645f /epan/dissectors/packet-tftp.c
parent291a8b8bc1841d6d13730c641285806958101f11 (diff)
TFTP: heuristic fix for RRQ/WRQ
Before that, it worked incorrectly for all valid RRQ/WRQ
Diffstat (limited to 'epan/dissectors/packet-tftp.c')
-rw-r--r--epan/dissectors/packet-tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tftp.c b/epan/dissectors/packet-tftp.c
index 214ad8d5cf..0a3f296176 100644
--- a/epan/dissectors/packet-tftp.c
+++ b/epan/dissectors/packet-tftp.c
@@ -781,7 +781,7 @@ dissect_embeddedtftp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
case TFTP_WRQ:
/* These 2 opcodes have a NULL-terminated source file name after opcode. Verify */
{
- gint char_offset = 1;
+ gint char_offset = 2;
while (tvb_captured_length_remaining(tvb, char_offset)) {
gchar c = (gchar)tvb_get_guint8(tvb, char_offset++);
if (c == '\0') {