CFDP: Fix empty source filename

Fixes: #18495
This commit is contained in:
Uli Heilmeier 2022-10-18 21:28:14 +02:00 committed by AndersBroman
parent 7b5ef933b0
commit b42628389e
1 changed files with 6 additions and 4 deletions

View File

@ -1157,11 +1157,13 @@ static guint32 dissect_cfdp_metadata_pdu(tvbuff_t *tvb, packet_info *pinfo, prot
aux_byte = tvb_get_guint8(tvb, offset);
if(aux_byte >0){
proto_tree_add_item(tree, hf_cfdp_src_file_name, tvb, offset+1, aux_byte, ENC_ASCII);
offset += aux_byte+1;
aux_byte = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_cfdp_dst_file_name, tvb, offset+1, aux_byte, ENC_ASCII);
offset += aux_byte+1;
}
offset += aux_byte+1;
aux_byte = tvb_get_guint8(tvb, offset);
if(aux_byte >0){
proto_tree_add_item(tree, hf_cfdp_dst_file_name, tvb, offset+1, aux_byte, ENC_ASCII);
}
offset += aux_byte+1;
/* Add TLV fields */
while(offset < cfdp_packet_data_length){
tlv_type = tvb_get_guint8(tvb, offset);