dovecot-2.0: lib-storage: Human search parser crashed if mailbox...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 21 19:21:34 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/52e2f3a8054f
changeset: 11601:52e2f3a8054f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 21 17:21:30 2010 +0100
description:
lib-storage: Human search parser crashed if mailbox name was missing.

diffstat:

 src/lib-storage/mail-search-register-human.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r c23ca08ca085 -r 52e2f3a8054f src/lib-storage/mail-search-register-human.c
--- a/src/lib-storage/mail-search-register-human.c	Mon Jun 21 17:14:55 2010 +0100
+++ b/src/lib-storage/mail-search-register-human.c	Mon Jun 21 17:21:30 2010 +0100
@@ -138,6 +138,9 @@
 	const char *value;
 
 	sarg = mail_search_build_str(ctx, SEARCH_MAILBOX_GLOB);
+	if (sarg == NULL)
+		return NULL;
+
 	value = sarg->value.str;
 
 	T_BEGIN {


More information about the dovecot-cvs mailing list