dovecot-2.2: imap: exit imap_fetch_binary_init() identically on ...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 27 18:19:21 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/3f4d224f2e6a
changeset: 17412:3f4d224f2e6a
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue May 27 21:17:34 2014 +0300
description:
imap: exit imap_fetch_binary_init() identically on all failures
This changes the behaviour, as -1 is TRUE as a boolean.

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/imap/imap-fetch-body.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 52ea7c8b587c -r 3f4d224f2e6a src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap/imap-fetch-body.c	Tue May 27 21:17:34 2014 +0300
@@ -416,7 +416,7 @@
 	}
 	if (imap_msgpart_parse(body->section, &body->msgpart) < 0) {
 		ctx->error = "Invalid BINARY[..] section";
-		return -1;
+		return FALSE;
 	}
 	imap_msgpart_set_decode_to_binary(body->msgpart);
 	ctx->fetch_ctx->fetch_data |=


More information about the dovecot-cvs mailing list