dovecot-2.2: mailbox_list_index=yes: Fixed a potential crash.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jun 24 03:13:47 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/5a9f9c35a8f0
changeset: 14630:5a9f9c35a8f0
user: Timo Sirainen <tss at iki.fi>
date: Sun Jun 24 03:02:11 2012 +0300
description:
mailbox_list_index=yes: Fixed a potential crash.
diffstat:
src/lib-storage/list/mailbox-list-index-status.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c93ca5e46a8a -r 5a9f9c35a8f0 src/lib-storage/list/mailbox-list-index-status.c
--- a/src/lib-storage/list/mailbox-list-index-status.c Sun Jun 24 00:52:57 2012 +0300
+++ b/src/lib-storage/list/mailbox-list-index-status.c Sun Jun 24 03:02:11 2012 +0300
@@ -81,7 +81,8 @@
ret = FALSE;
else {
status_r->uidvalidity = rec->uid_validity;
- memcpy(mailbox_guid, rec->guid, GUID_128_SIZE);
+ if (mailbox_guid != NULL)
+ memcpy(mailbox_guid, rec->guid, GUID_128_SIZE);
}
}
More information about the dovecot-cvs
mailing list