Fixed 'portStr' not a std::string anymore.
This commit is contained in:
parent
7c6e00798e
commit
ac8543ac57
@ -461,7 +461,7 @@ void posixSocket::resolve(struct ::addrinfo** addrInfo, const vmime::string& add
|
|||||||
|
|
||||||
#else // !VMIME_HAVE_GETADDRINFO_A
|
#else // !VMIME_HAVE_GETADDRINFO_A
|
||||||
|
|
||||||
if (::getaddrinfo(address.c_str(), portStr.str().c_str(), &hints, addrInfo) != 0)
|
if (::getaddrinfo(address.c_str(), portStr, &hints, addrInfo) != 0)
|
||||||
{
|
{
|
||||||
// Error: cannot resolve address
|
// Error: cannot resolve address
|
||||||
throw vmime::exceptions::connection_error("Cannot resolve address.");
|
throw vmime::exceptions::connection_error("Cannot resolve address.");
|
||||||
|
Loading…
Reference in New Issue
Block a user