dovecot-1.1: Fixed message address assert-crashing if the entire...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 24 01:56:17 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/48840b2d4b18
changeset: 7965:48840b2d4b18
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 24 01:56:13 2008 +0300
description:
Fixed message address assert-crashing if the entire input was invalid.
Patch by Richard Platel.

diffstat:

1 file changed, 1 insertion(+), 2 deletions(-)
src/lib-mail/message-address.c |    3 +--

diffs (13 lines):

diff -r 25b0cf7c62d3 -r 48840b2d4b18 src/lib-mail/message-address.c
--- a/src/lib-mail/message-address.c	Thu Oct 23 18:58:22 2008 +0300
+++ b/src/lib-mail/message-address.c	Fri Oct 24 01:56:13 2008 +0300
@@ -314,8 +314,7 @@ message_address_parse_real(pool_t pool, 
 	ctx.str = t_str_new(128);
 	ctx.fill_missing = fill_missing;
 
-	ret = rfc822_skip_lwsp(&ctx.parser);
-	if (ret == 0) {
+	if (rfc822_skip_lwsp(&ctx.parser) <= 0) {
 		/* no addresses */
 		return NULL;
 	}


More information about the dovecot-cvs mailing list