dovecot-2.0: message address parser: Fixed potential problems wi...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 5 01:06:06 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/ae8294182346
changeset: 11036:ae8294182346
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 05 00:42:57 2010 +0300
description:
message address parser: Fixed potential problems with parsing invalid address groups.
diffstat:
src/lib-mail/message-address.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 59445c4055ab -r ae8294182346 src/lib-mail/message-address.c
--- a/src/lib-mail/message-address.c Mon Apr 05 00:36:17 2010 +0300
+++ b/src/lib-mail/message-address.c Mon Apr 05 00:42:57 2010 +0300
@@ -245,11 +245,13 @@
}
}
}
- if (*ctx->parser.data != ';')
- ret = -1;
- else {
- ctx->parser.data++;
- ret = rfc822_skip_lwsp(&ctx->parser);
+ if (ret >= 0) {
+ if (*ctx->parser.data != ';')
+ ret = -1;
+ else {
+ ctx->parser.data++;
+ ret = rfc822_skip_lwsp(&ctx->parser);
+ }
}
if (ret < 0)
ctx->addr.invalid_syntax = TRUE;
More information about the dovecot-cvs
mailing list