dovecot-1.2: Fixed message address assert-crashing if the entire...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Fri Oct 24 01:56:27 EEST 2008
    
    
  
details:   http://hg.dovecot.org/dovecot-1.2/rev/b62e350500c9
changeset: 8321:b62e350500c9
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 d49aa6720fb2 -r b62e350500c9 src/lib-mail/message-address.c
--- a/src/lib-mail/message-address.c	Thu Oct 23 20:31:41 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