Skip to content

Commit

Permalink
Fixed conn_mux map_count increment in insert_map_entry()
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jul 23, 2022
1 parent 935c392 commit 4c7d75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conn_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int insert_map_entry(registry_impl_t *impl, const addr_record_t *record,
return insert_map_entry(impl, record, agent);
}

if (entry->type == MAP_ENTRY_TYPE_EMPTY)
if (entry->type != MAP_ENTRY_TYPE_FULL)
++impl->map_count;

entry->type = MAP_ENTRY_TYPE_FULL;
Expand Down

0 comments on commit 4c7d75c

Please sign in to comment.