Skip to content

Commit

Permalink
Fix #363, decoding segs using incorrect macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Oct 17, 2023
1 parent 3d46fad commit 6774abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/src/cf_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ void CF_CFDP_DecodeAllSegments(CF_DecoderState_t *state, CF_Logical_SegmentList_
{
--limit;

if (plseg->num_segments >= CF_PDU_MAX_TLV)
if (plseg->num_segments >= CF_PDU_MAX_SEGMENTS)
{
/* too many */
CF_CODEC_SET_DONE(state);
Expand Down

0 comments on commit 6774abf

Please sign in to comment.