Skip to content

Commit

Permalink
Fixed 'portStr' not a std::string anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-richard committed Apr 10, 2016
1 parent 7c6e007 commit ac8543a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmime/platforms/posix/posixSocket.cpp
Expand Up @@ -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.");
Expand Down

0 comments on commit ac8543a

Please sign in to comment.