From 13eefbba7234ad1596e6d308d41846daa9d31594 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 14 Jul 2016 15:20:59 +0200 Subject: rfc2045: return 0 when no body is found in blaze822_mime_body --- rfc2045.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rfc2045.c b/rfc2045.c index e5e19ff..64876ae 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -22,7 +22,8 @@ blaze822_mime_body(struct message *msg, if (!msg->body || !msg->bodyend) { *bodyo = 0; *bodyleno = 0; - return -1; + *bodychunko = 0; + return 0; } char *ct = blaze822_hdr(msg, "content-type"); -- cgit 1.4.1