0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd::server: Fix setting peer error state when first link fails.

This commit is contained in:
Jason Volk 2020-01-23 21:58:44 -08:00
parent 660d0052cf
commit 41c012a695

View file

@ -864,7 +864,9 @@ ircd::server::peer::handle_open(link &link,
{
if(eptr)
{
if(links.size() == 1)
// Mark the peer as errored if the first link connection failed.
assert(!links.empty());
if(std::addressof(link) == std::addressof(links.front()))
err_set(eptr);
thread_local char rembuf[64];