Mercurial > dovecot > core-2.2
diff src/imap/imap-fetch-body.c @ 17412:3f4d224f2e6a
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@dovecot.fi>
author | Phil Carmody <phil@dovecot.fi> |
---|---|
date | Tue, 27 May 2014 21:17:34 +0300 |
parents | 197f77f6ef0d |
children | 9b9b6dc7dd9b |
line wrap: on
line diff
--- 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 |=