dovecot-2.0: lib-storage: Don't crash if invalid parameter is gi...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 6 15:44:51 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/b9a5ad0324c8
changeset: 11737:b9a5ad0324c8
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 06 13:44:48 2010 +0100
description:
lib-storage: Don't crash if invalid parameter is given to SEARCH OLDER.
diffstat:
src/lib-storage/mail-search-register-imap.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 2f290e28283a -r b9a5ad0324c8 src/lib-storage/mail-search-register-imap.c
--- a/src/lib-storage/mail-search-register-imap.c Mon Jul 05 20:41:30 2010 +0100
+++ b/src/lib-storage/mail-search-register-imap.c Tue Jul 06 13:44:48 2010 +0100
@@ -301,6 +301,9 @@
struct mail_search_arg *sarg;
sarg = arg_new_interval(ctx, SEARCH_BEFORE);
+ if (sarg == NULL)
+ return NULL;
+
/* we need to match also equal, but SEARCH_BEFORE compares with "<" */
sarg->value.time++;
return sarg;
More information about the dovecot-cvs
mailing list