[dovecot-cvs] dovecot/src/plugins/trash trash-plugin.c, 1.5.2.3, 1.5.2.4
tss at dovecot.org
tss at dovecot.org
Fri Feb 16 12:15:27 UTC 2007
Update of /var/lib/cvs/dovecot/src/plugins/trash
In directory talvi:/tmp/cvs-serv3710
Modified Files:
Tag: branch_1_0
trash-plugin.c
Log Message:
If trash mailbox can't be opened, don't crash.
Index: trash-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/trash/trash-plugin.c,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -d -r1.5.2.3 -r1.5.2.4
--- trash-plugin.c 12 Nov 2006 18:48:28 -0000 1.5.2.3
+++ trash-plugin.c 16 Feb 2007 12:15:25 -0000 1.5.2.4
@@ -65,6 +65,9 @@
{
trash->box = mailbox_open(trash->storage, trash->name, NULL,
MAILBOX_OPEN_KEEP_RECENT);
+ if (trash->box == NULL)
+ return -1;
+
if (sync_mailbox(trash->box) < 0)
return -1;
More information about the dovecot-cvs
mailing list