OpenCyphal / libudpard

A compact implementation of the Cyphal/UDP protocol in C for high-integrity real-time embedded systems
MIT License
10 stars 8 forks source link

Add check in rxSessionUpdate to make sure that we are updating the correct RX session transport index #22

Closed lydia-at-amazon closed 10 months ago

lydia-at-amazon commented 1 year ago

While updating the out-of-order multiframe bug, another bug was found related to using redundant transports. We were updating the RX session for multiframe transfers without verifying that the transport index passed into udpardRxAccept matched the index saved for the RX session.

Add check in rxSessionUpdate to make sure that we are updating the correct RX session transport index