aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-06 07:03:56 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-06 07:03:56 +0000
commitf24d50779fb048d663d9c0ed815682b00ec4c2ad (patch)
tree5d32f4910996ec4f2e8cf97adf9809f259a87d57
parentc543027406e88271b2833f3ad7a85097363f46e6 (diff)
src/inc.c: properly detect DNS lookup error when session_connect_full() failed immediately.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3084 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog7
-rw-r--r--src/inc.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 43c9a570..7b4e2b29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
-2012-06-05
+2012-06-06
* version 3.2.0beta8
+2012-06-06
+
+ * src/inc.c: properly detect DNS lookup error when
+ session_connect_full() failed immediately.
+
2012-05-31
* libsylph/session.[ch]
diff --git a/src/inc.c b/src/inc.c
index f464926e..81664b96 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -1024,7 +1024,7 @@ static IncState inc_pop3_session_do(IncSession *session)
if (session_get_error(SESSION(pop3_session)) == SESSION_ERROR_LOOKUP)
session->inc_state = INC_LOOKUP_ERROR;
statusbar_pop_all();
- return INC_CONNECT_ERROR;
+ return session->inc_state;
}
while (session_is_connected(SESSION(pop3_session)) &&