dovecot-2.1-pigeonhole: lib-sieve: fixed bug caused by last chan...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Sat Nov 26 12:29:14 EET 2011


details:   http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/1143c225b528
changeset: 1554:1143c225b528
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sat Nov 26 11:29:07 2011 +0100
description:
lib-sieve: fixed bug caused by last change to rfc2822 header verification.

diffstat:

 src/lib-sieve/rfc2822.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 258108f6eea5 -r 1143c225b528 src/lib-sieve/rfc2822.c
--- a/src/lib-sieve/rfc2822.c	Sat Nov 26 11:11:43 2011 +0100
+++ b/src/lib-sieve/rfc2822.c	Sat Nov 26 11:29:07 2011 +0100
@@ -41,8 +41,8 @@
 bool rfc2822_header_field_body_verify
 (const char *field_body, unsigned int len, bool allow_crlf, bool allow_utf8)
 {
-	const char *p = field_body;
-	const char *pend = p + len;
+	const unsigned char *p = (const unsigned char *)field_body;
+	const unsigned char *pend = p + len;
 	bool is8bit = FALSE;
 
 	/* RFC5322:
@@ -60,7 +60,7 @@
 		if ( (*p == '\r' || *p == '\n') && !allow_crlf )
 			return FALSE;
 
-		if ( !is8bit && ((unsigned char)*p) > 127 ) {
+		if ( !is8bit && *p > 127 ) {
 			if ( !allow_utf8 )
 				return FALSE;
 


More information about the dovecot-cvs mailing list