aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2016-10-06 19:49:27 +0000
committerVincent Richard <[email protected]>2016-10-06 19:49:27 +0000
commit4a0b88a6cc165f62d47b90ee0582829f29e34670 (patch)
treee311e42dc9e298d098318dd7f28f04be9e501a38
parentFixed #142: fixed install location of generated headers. (diff)
downloadvmime-4a0b88a6cc165f62d47b90ee0582829f29e34670.tar.gz
vmime-4a0b88a6cc165f62d47b90ee0582829f29e34670.zip
Fixed #144: lasting resolving is not an error.
-rw-r--r--src/vmime/platforms/posix/posixSocket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vmime/platforms/posix/posixSocket.cpp b/src/vmime/platforms/posix/posixSocket.cpp
index 13b2d85d..d657d4d5 100644
--- a/src/vmime/platforms/posix/posixSocket.cpp
+++ b/src/vmime/platforms/posix/posixSocket.cpp
@@ -435,7 +435,9 @@ void posixSocket::resolve(struct ::addrinfo** addrInfo, const vmime::string& add
{
if (gaiError == EAI_SYSTEM)
{
- if (errno != 0)
+ const int ret = gai_error(&gaiRequest);
+
+ if (ret != EAI_INPROGRESS && errno != 0)
{
try
{