Skip to content

Commit

Permalink
Fix unset request header writer GUID (#36)
Browse files Browse the repository at this point in the history
* Fix unset request header writer GUID

* Fix unset request header writer GUID in `rmw_take_response`
  • Loading branch information
fuzzypixelz authored Oct 24, 2024
1 parent 736c34e commit e6b7ecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,8 @@ rmw_take_response(
return RMW_RET_ERROR;
}

memcpy(request_header->request_id.writer_guid, attachment.source_gid, RMW_GID_STORAGE_SIZE);

request_header->source_timestamp = attachment.source_timestamp;
if (request_header->source_timestamp < 0) {
RMW_SET_ERROR_MSG("Failed to get source_timestamp from client call attachment");
Expand Down Expand Up @@ -2337,6 +2339,8 @@ rmw_take_request(
return RMW_RET_ERROR;
}

memcpy(request_header->request_id.writer_guid, attachment.source_gid, RMW_GID_STORAGE_SIZE);

request_header->source_timestamp = attachment.source_timestamp;
if (request_header->source_timestamp < 0) {
RMW_SET_ERROR_MSG("Failed to get source_timestamp from client call attachment");
Expand Down

0 comments on commit e6b7ecb

Please sign in to comment.