diff options
author | John Thacker <johnthacker@gmail.com> | 2023-03-04 08:38:28 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2023-03-04 08:38:28 -0500 |
commit | c7823a14ec27d1ac72f1d6c0d3ec5eb72aa661e6 (patch) | |
tree | fd4789b117b001ccf17895e91aeb75b7d3a7177f /epan/dissectors | |
parent | 69d82b44efc6b6e0be50f5d1ec0fca389645a29e (diff) |
VNC: Fix accidental offset increment in RRE
This was accidentally added in f4242568896a611cfc563c90b57a421ad2805f31
and is clearly incorrect: https://www.rfc-editor.org/rfc/rfc6143#section-7.7.3
Fix #18883
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-vnc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c index 0fa17e1dea..ab5be32a4a 100644 --- a/epan/dissectors/packet-vnc.c +++ b/epan/dissectors/packet-vnc.c @@ -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); |