diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-06-18 02:48:27 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-06-18 02:48:27 +0000 |
commit | 63f047eb5c4a21d42c14325ffde815338f40488e (patch) | |
tree | 7015e66e230d5ace2bf5bd5efa0c47c9ff9a55a2 /libsylph/pop.c | |
parent | 12e6c3c5a0f3d2cac44569fd19a7b0c467cb7ef9 (diff) |
fixes crash on cancel.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2581 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/pop.c')
-rw-r--r-- | libsylph/pop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c index aab918ee..4be646ba 100644 --- a/libsylph/pop.c +++ b/libsylph/pop.c @@ -890,6 +890,10 @@ static gint pop3_session_recv_data_as_file_finished(Session *session, FILE *fp, if (pop3_retr_recv(pop3_session, fp, len) < 0) return -1; + /* disconnected? */ + if (!session->sock) + return -1; + if (pop3_session->msg[pop3_session->cur_msg].recv_time == RECV_TIME_DELETE || (pop3_session->ac_prefs->rmmail && |