]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rfb: remove duplicate logging of depth
authorJason Ish <jason.ish@oisf.net>
Wed, 25 Jan 2023 17:07:19 +0000 (11:07 -0600)
committerJason Ish <jason.ish@oisf.net>
Sun, 29 Jan 2023 21:38:20 +0000 (15:38 -0600)
The "depth" field in the "pixel_format" object was being logged twice.

Issue: 5813

rust/src/rfb/logger.rs

index b39e83e2e07af0f132bdc81379b85110194b219a..e670e869cec3cc917bbd6c4d95351107bf6231fe 100644 (file)
@@ -102,7 +102,6 @@ fn log_rfb(tx: &RFBTransaction, js: &mut JsonBuilder) -> Result<(), JsonError> {
         js.set_uint("red_shift", tc_server_init.pixel_format.red_shift as u64)?;
         js.set_uint("green_shift", tc_server_init.pixel_format.green_shift as u64)?;
         js.set_uint("blue_shift", tc_server_init.pixel_format.blue_shift as u64)?;
-        js.set_uint("depth", tc_server_init.pixel_format.depth as u64)?;
         js.close()?;
 
         js.close()?;