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 <ahcorde@gmail.com>
  • Loading branch information
ahcorde authored Sep 29, 2020
1 parent f2287ea commit aa1450d
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 aa1450d

Please sign in to comment.