From ac8543ac5773038b64397b1dc7c0a316936a18d8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 10 Apr 2016 15:14:52 +0200 Subject: [PATCH] Fixed 'portStr' not a std::string anymore. --- src/vmime/platforms/posix/posixSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmime/platforms/posix/posixSocket.cpp b/src/vmime/platforms/posix/posixSocket.cpp index 131a4c4d..e27cb170 100644 --- a/src/vmime/platforms/posix/posixSocket.cpp +++ b/src/vmime/platforms/posix/posixSocket.cpp @@ -461,7 +461,7 @@ void posixSocket::resolve(struct ::addrinfo** addrInfo, const vmime::string& add #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 throw vmime::exceptions::connection_error("Cannot resolve address.");