Skip to content

Commit

Permalink
net/AsyncConnect: use the SO_ERROR result, not errno
Browse files Browse the repository at this point in the history
Fixes regression by commit dfd2602
  • Loading branch information
MaxKellermann committed Oct 15, 2020
1 parent 6bb883b commit 8e9c42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/AsyncConnect.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ AsyncConnect::OnSocketReady(unsigned) noexcept

int s_err = event.GetSocket().GetError();
if (s_err != 0) {
handler.OnConnectError(strerror(errno));
handler.OnConnectError(strerror(s_err));
return;
}

Expand Down

0 comments on commit 8e9c42d

Please sign in to comment.