Skip to content

Commit

Permalink
SWPTP-1529: stash correct size of out-of-order Delay_Resp payload
Browse files Browse the repository at this point in the history
  • Loading branch information
abower-amd committed Oct 9, 2024
1 parent 1319407 commit ee3276e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ptp/ptpd2/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ processDelayReqFromSelf(const struct sfptpd_timespec *time, RunTimeOpts *rtOpts,
delay_resp->header.messageType,
delay_resp->header.sequenceId);
handleDelayResp(&delay_resp->header,
delay_resp->payload_length + sizeof(MsgHeader),
delay_resp->payload_length + PTPD_HEADER_LENGTH,
&delay_resp->payload.resp, true,
rtOpts, ptpClock);
}
Expand All @@ -2377,7 +2377,7 @@ handleDelayResp(const MsgHeader *header, ssize_t length,
RunTimeOpts *rtOpts, PtpClock *ptpClock)
{
Integer8 msgInterval;
ssize_t payload_length = length - sizeof *header;
ssize_t payload_length = length - PTPD_HEADER_LENGTH;

DBGV("delayResp message received : \n");

Expand Down

0 comments on commit ee3276e

Please sign in to comment.