Skip to content

Commit be058dc

Browse files
committed
pldm-platform: Fix duplicate filename_length field
FileDescriptor PDRs were being encoded/decoded with a duplicated length field. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent 2492e09 commit be058dc

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

pldm-file/examples/host.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ fn handle_get_pdr(
196196
file_max_size,
197197
// TODO
198198
file_max_desc_count: 1,
199-
file_name_length: file_name.len() as u8,
200199
file_name: file_name.into(),
201200
oem_file_name: Default::default(),
202201
}),

pldm-platform/src/proto.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@ pub struct FileDescriptorPdr {
653653
pub file_version: u32,
654654
pub file_max_size: u32,
655655
pub file_max_desc_count: u8,
656-
pub file_name_length: u8,
657656

658657
#[deku(temp, temp_value = "self.file_name.len() as u8")]
659658
pub file_name_len: u8,

0 commit comments

Comments
 (0)