Skip to content

Commit

Permalink
Merge pull request #164 from paullouisageneau/fix-mux-map-count
Browse files Browse the repository at this point in the history
Fix mux map count not incremented if replacing a deleted entry
  • Loading branch information
paullouisageneau authored Jul 25, 2022
2 parents 935c392 + 4c7d75c commit d8dda24
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 d8dda24

Please sign in to comment.