[dovecot-cvs] dovecot/src/pop3 commands.c,1.6,1.7
cras at procontrol.fi
cras at procontrol.fi
Sat Feb 1 13:44:42 EET 2003
Update of /home/cvs/dovecot/src/pop3
In directory danu:/tmp/cvs-serv30974/pop3
Modified Files:
commands.c
Log Message:
Don't crash if we couldn't open message.
Index: commands.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- commands.c 30 Jan 2003 19:52:39 -0000 1.6
+++ commands.c 1 Feb 2003 11:44:40 -0000 1.7
@@ -284,11 +284,10 @@
}
mail = client->mailbox->fetch_next(ctx);
- if (mail == NULL)
+ stream = mail == NULL ? NULL : mail->get_stream(mail, NULL, NULL);
+ if (stream == NULL)
client_send_line(client, "-ERR Message not found.");
else {
- stream = mail->get_stream(mail, NULL, NULL);
-
if (body_lines == (uoff_t)-1) {
client_send_line(client, "+OK %"PRIuUOFF_T" octets",
client->message_sizes[msgnum]);
More information about the dovecot-cvs
mailing list