Skip to content

Commit

Permalink
Checks throttle node pointer upon speed reply messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Nov 7, 2020
1 parent 065bbc1 commit 44f31ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/openlcb/TractionThrottle.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,11 @@ private:
void speed_reply(Buffer<GenMessage> *msg)
{
AutoReleaseBuffer<GenMessage> rb(msg);
if (msg->data()->dstNode != node_)
{
// For a different throttle.
return;
}
if (!iface()->matching_node(msg->data()->src, NodeHandle(dst_)))
{
return;
Expand Down

0 comments on commit 44f31ee

Please sign in to comment.