Merge pull request #6387 from sfc-gh-ajbeamon/fix-endpoint-allocation

When inserting multiple streams into an EndpointMap, don't assign them to the well-known endpoint space
This commit is contained in:
A.J. Beamon 2022-02-11 14:42:08 -08:00 committed by GitHub
commit 2e78014870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ const Endpoint& EndpointMap::insert(NetworkAddressList localAddresses,
int adjacentFree = 0;
int adjacentStart = -1;
firstFree = -1;
for (int i = 0; i < data.size(); i++) {
for (int i = wellKnownEndpointCount; i < data.size(); i++) {
if (data[i].receiver) {
adjacentFree = 0;
} else {