Fixed 'portStr' not a std::string anymore.

This commit is contained in:
Vincent Richard 2016-04-10 15:14:52 +02:00
parent 7c6e00798e
commit ac8543ac57

View File

@ -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.");