dovecot-1.1: SEARCH/SORT/THREAD: If search parameters are missin...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 29 19:11:37 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/b7fcace54fad
changeset: 7572:b7fcace54fad
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 29 19:11:32 2008 +0300
description:
SEARCH/SORT/THREAD: If search parameters are missing, return a clear error
message.

diffstat:

1 file changed, 2 insertions(+)
src/imap/imap-search.c |    2 ++

diffs (12 lines):

diff -r 443dcddf9a9a -r b7fcace54fad src/imap/imap-search.c
--- a/src/imap/imap-search.c	Thu May 29 19:08:05 2008 +0300
+++ b/src/imap/imap-search.c	Thu May 29 19:11:32 2008 +0300
@@ -548,6 +548,8 @@ imap_search_args_build(pool_t pool, stru
 		sargs = &(*sargs)->next;
 	}
 
+	if (first_sarg == NULL)
+		*error_r = "Missing search parameters";
 	return first_sarg;
 }
 


More information about the dovecot-cvs mailing list