Fix bug causing vector removal to skip elements

This commit is contained in:
Alex
2023-04-20 03:24:23 +03:00
parent ad1bcdab47
commit 0eb8ba0f69
8 changed files with 16 additions and 12 deletions

View File

@ -49,6 +49,7 @@ namespace NetworkARP
netdbg("Removed %s from discovered addresses", IP.v4.ToStringLittleEndian());
delete tmp, tmp = nullptr;
DiscoveredAddresses.remove(i);
break;
}
}
return nullptr;