dovecot-2.2: lib-mail: Message parser now always returns block->...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 11 10:34:13 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/f41d3c771627
changeset: 17692:f41d3c771627
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 11 13:30:25 2014 +0300
description:
lib-mail: Message parser now always returns block->data=NULL when it's not supposed to be used.
diffstat:
src/lib-mail/message-parser.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 73aedf57e311 -r f41d3c771627 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Sat Aug 09 10:10:34 2014 +0300
+++ b/src/lib-mail/message-parser.c Mon Aug 11 13:30:25 2014 +0300
@@ -1041,6 +1041,10 @@
}
}
+ if (block_r->size == 0) {
+ /* data isn't supposed to be read, so make sure it's NULL */
+ block_r->data = NULL;
+ }
return ret;
}
More information about the dovecot-cvs
mailing list