VNC: Fix accidental offset increment in RRE

This was accidentally added in f424256889
and is clearly incorrect: https://www.rfc-editor.org/rfc/rfc6143#section-7.7.3

Fix #18883
This commit is contained in:
John Thacker 2023-03-04 08:38:28 -05:00
parent 69d82b44ef
commit c7823a14ec
1 changed files with 0 additions and 1 deletions

View File

@ -2358,7 +2358,6 @@ vnc_rre_encoding(tvbuff_t *tvb, packet_info *pinfo, gint *offset,
return(0);
}
*offset += 2;
VNC_BYTES_NEEDED(bytes_per_pixel);
proto_tree_add_item(tree, hf_vnc_rre_bg_pixel, tvb, *offset,
bytes_per_pixel, ENC_NA);