Skip to content

Commit

Permalink
Merge pull request #413 from dmknutsen/Issue_363
Browse files Browse the repository at this point in the history
Fix #363, decoding segs using incorrect macro
  • Loading branch information
dzbaker authored Oct 19, 2023
2 parents 046a70a + 6774abf commit 6a333bf
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 6a333bf

Please sign in to comment.