Skip to content

Commit

Permalink
checked client implementation and return RMW_RET_INCORRECT_RMW_IMPLEM…
Browse files Browse the repository at this point in the history
…ENTATION (#451)

Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Oct 8, 2020
1 parent 430660c commit c378949
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ __rmw_service_server_is_available(
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
node handle,
node->implementation_identifier, identifier,
return RMW_RET_ERROR);
return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);

if (!client) {
RMW_SET_ERROR_MSG("client handle is null");
return RMW_RET_ERROR;
}

RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
client handle,
client->implementation_identifier, identifier,
return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);

if (!is_available) {
RMW_SET_ERROR_MSG("is_available is null");
return RMW_RET_ERROR;
Expand Down

0 comments on commit c378949

Please sign in to comment.