dovecot-2.0: maildir: p_strdup() GUID and UIDL_BACKEND to make s...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 8 20:05:23 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/11169c6c6e8d
changeset: 12396:11169c6c6e8d
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 08 18:03:07 2010 +0000
description:
maildir: p_strdup() GUID and UIDL_BACKEND to make sure they don't change unexpectedly.
diffstat:
src/lib-storage/index/maildir/maildir-mail.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 878746da7992 -r 11169c6c6e8d src/lib-storage/index/maildir/maildir-mail.c
--- a/src/lib-storage/index/maildir/maildir-mail.c Fri Nov 05 19:51:47 2010 +0000
+++ b/src/lib-storage/index/maildir/maildir-mail.c Mon Nov 08 18:03:07 2010 +0000
@@ -485,7 +485,7 @@
guid = maildir_uidlist_lookup_ext(mbox->uidlist, _mail->uid,
MAILDIR_UIDLIST_REC_EXT_GUID);
if (guid != NULL) {
- *value_r = guid;
+ *value_r = p_strdup(mail->data_pool, guid);
return 0;
}
@@ -524,7 +524,7 @@
return maildir_mail_get_special(_mail,
MAIL_FETCH_UIDL_FILE_NAME, value_r);
} else {
- *value_r = uidl;
+ *value_r = p_strdup(mail->data_pool, uidl);
}
return 0;
default:
More information about the dovecot-cvs
mailing list