Removed md5.c and md5.h because the APOP implementation which used it is no longer...
[citadel.git] / citadel / msgbase.c
index 7f6b7c9dabecf7477a213aecbea99a1f67e1af03..39782600951a214175f71ef2ae5dbe27b4dfc18d 100644 (file)
@@ -19,7 +19,6 @@
 #include <regex.h>
 #include <sys/stat.h>
 #include <libcitadel.h>
-#include "md5.h"
 #include "ctdl_module.h"
 #include "citserver.h"
 #include "control.h"
@@ -1109,6 +1108,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.