Skip to content

Commit

Permalink
prov/shm: fix name compare bug
Browse files Browse the repository at this point in the history
Could result in a peer getting incorrectly unmmaped

Signed-off-by: Alexia Ingerson <[email protected]>
  • Loading branch information
aingerson committed Dec 21, 2024
1 parent fde8569 commit 442fa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/shm/src/smr_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 442fa89

Please sign in to comment.