summaryrefslogtreecommitdiff
path: root/mailapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailapi.c')
-rw-r--r--mailapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mailapi.c b/mailapi.c
index d8e6ed2..902e193 100644
--- a/mailapi.c
+++ b/mailapi.c
@@ -971,6 +971,10 @@ void SendBBSDataToPktMapThread(void * Param)
// Get Routing
MsgBytes = ReadMessageFile(Msg->number);
+
+ if (MsgBytes == NULL)
+ continue;
+
RLines = malloc(Msg->length * 2); // Very unlikely to need so much but better safe..
strcpy(RLines, "[]");