dovecot-2.0: lib-storage: mailbox_get_guid() crashed if storage ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 16 02:30:53 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/092d5ba2dcfa
changeset: 12289:092d5ba2dcfa
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 16 00:30:50 2010 +0100
description:
lib-storage: mailbox_get_guid() crashed if storage didn't support GUIDs.

diffstat:

 src/lib-storage/mail-storage.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r cc81de55245f -r 092d5ba2dcfa src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Sat Oct 16 00:23:20 2010 +0100
+++ b/src/lib-storage/mail-storage.c	Sat Oct 16 00:30:50 2010 +0100
@@ -892,6 +892,7 @@
 	if (box->v.get_guid == NULL) {
 		mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
 				       "Storage doesn't support mailbox GUIDs");
+		return -1;
 	}
 	if (!box->opened) {
 		if (mailbox_open(box) < 0)


More information about the dovecot-cvs mailing list