TFTP: heuristic fix for RRQ/WRQ

Before that, it worked incorrectly for all valid RRQ/WRQ
This commit is contained in:
Roman-Koshelev 2021-03-23 21:01:38 +03:00 committed by Wireshark GitLab Utility
parent 291a8b8bc1
commit 5e2080131d
1 changed files with 1 additions and 1 deletions

View File

@ -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') {