aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rpop3.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpop3.c b/src/rpop3.c
index 9503f35d..1b4d7749 100644
--- a/src/rpop3.c
+++ b/src/rpop3.c
@@ -795,6 +795,11 @@ static gint rpop3_retr_recv(Pop3Session *session, FILE *fp, guint len)
}
msginfo = procheader_parse_file(file, flags, FALSE);
+ if (!msginfo) {
+ session->error_val = PS_IOERR;
+ return -1;
+ }
+
msginfo->file_path = g_strdup(file);
msgview = messageview_create_with_new_window();