Mercurial > dovecot > core-2.2
changeset 12289:092d5ba2dcfa
lib-storage: mailbox_get_guid() crashed if storage didn't support GUIDs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 Oct 2010 00:30:50 +0100 |
parents | cc81de55245f |
children | 811e49651662 |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)