dovecot-2.2: mailbox_list_index=yes: Fixed a potential crash.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jun 24 20:57:39 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/bb1de2a1d866
changeset: 14670:bb1de2a1d866
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 6411d91d0755 -r bb1de2a1d866 src/lib-storage/list/mailbox-list-index-status.c
--- a/src/lib-storage/list/mailbox-list-index-status.c Sun Jun 24 02:20:28 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