diff --git a/src/cpp/rtps/reader/StatefulReader.cpp b/src/cpp/rtps/reader/StatefulReader.cpp index 5409d891747..178428bc336 100644 --- a/src/cpp/rtps/reader/StatefulReader.cpp +++ b/src/cpp/rtps/reader/StatefulReader.cpp @@ -240,7 +240,7 @@ bool StatefulReader::matched_writer_add( if (SequenceNumber_t::unknown() != last_seq) { SequenceNumberSet_t sns(last_seq + 1); - send_acknack(wp, sns, wp, false); + send_acknack(wp, sns, *wp, false); wp->lost_changes_update(last_seq + 1); } }