Fix incorrect usage of strerror_r
This commit is contained in:
@@ -108,8 +108,7 @@ public:
|
||||
return sock;
|
||||
|
||||
error_errno:
|
||||
strerror_r(errno, errbuf, 1024);
|
||||
err = errbuf;
|
||||
err = strerror_r(errno, errbuf, 1024);
|
||||
error:
|
||||
if (sock != INVALID_SOCKET) close(sock);
|
||||
if (addrs != nullptr) freeaddrinfo(addrs);
|
||||
|
||||
Reference in New Issue
Block a user