From bb93a4b1e2bfdfd1e1ab00d74b92fea46ff57b6b Mon Sep 17 00:00:00 2001 From: ivanpauno Date: Thu, 26 Sep 2019 13:08:33 -0300 Subject: [PATCH] Fix bug in graph API by node (#316) (#323) Signed-off-by: ivanpauno --- rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp b/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp index 5ad9da4cf..53f7a3760 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp @@ -59,7 +59,7 @@ rmw_ret_t __get_guid_by_name( const char * node_namespace, GUID_t & guid) { auto impl = static_cast(node->data); - if (strcmp(node->name, node_name) == 0) { + if (strcmp(node->name, node_name) == 0 && strcmp(node->namespace_, node_namespace) == 0) { guid = impl->participant->getGuid(); } else { std::set nodes_in_desired_namespace;