From cbdfd90e8f5dae213ce649e6e02d913a45203197 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 23 Nov 2018 14:34:46 -0500 Subject: [PATCH] Suppress 'message 0 appears to be corrupted' log messages --- citadel/msgbase.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 7f6b7c9da..2730f8ec3 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -1109,6 +1109,9 @@ struct CtdlMessage *CtdlDeserializeMessage(long msgnum, int with_body, const cha mptr = Buffer; upper_bound = Buffer + Length; + if (msgnum <= 0) { + return NULL; + } /* Parse the three bytes that begin EVERY message on disk. * The first is always 0xFF, the on-disk magic number. -- 2.30.2