diff --git a/prov/shm/src/smr_util.c b/prov/shm/src/smr_util.c index 0c5de80e2a0..0372c7e0597 100644 --- a/prov/shm/src/smr_util.c +++ b/prov/shm/src/smr_util.c @@ -599,7 +599,7 @@ void smr_map_del(struct smr_map *map, int64_t id) assert(id >= 0 && id < SMR_MAX_PEERS); pthread_mutex_lock(&ep_list_lock); dlist_foreach_container(&ep_name_list, struct smr_ep_name, name, entry) { - if (strcmp(name->name, map->peers[id].peer.name)) { + if (!strcmp(name->name, map->peers[id].peer.name)) { local = true; break; }