2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-26 14:52:09 +00:00

Need to clear error after successful call of WSAAddressToString or

WSAStringToAddress.


[SVN r36056]
This commit is contained in:
Christopher Kohlhoff
2006-11-16 11:49:11 +00:00
parent e504cf5c6c
commit 3cc30008b4

View File

@@ -514,6 +514,7 @@ inline int inet_pton(int af, const char* src, void* dest,
sockaddr_in4_type* ipv4_address =
reinterpret_cast<sockaddr_in4_type*>(&address);
memcpy(dest, &ipv4_address->sin_addr, sizeof(in4_addr_type));
clear_error(ec);
}
else if (strcmp(src, "255.255.255.255") == 0)
{
@@ -529,6 +530,7 @@ inline int inet_pton(int af, const char* src, void* dest,
memcpy(dest, &ipv6_address->sin6_addr, sizeof(in6_addr_type));
if (scope_id)
*scope_id = ipv6_address->sin6_scope_id;
clear_error(ec);
}
}