Add NULL-Pointer check before starting the work.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 26 May 2012 10:00:02 +0000 (12:00 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 26 May 2012 10:00:02 +0000 (12:00 +0200)
citadel/journaling.c

index 33b840732fa300178933c38f7631bc3ba0f5837d..6d68d08748b7e24aa70b3abade7e69c2514669f9 100644 (file)
@@ -130,6 +130,8 @@ void JournalRunQueueMsg(struct jnlq *jmsg) {
        static int seq = 0;
        int i;
 
+       if (jmsg == NULL)
+               return;
        journal_recps = validate_recipients(config.c_journal_dest, NULL, 0);
        if (journal_recps != NULL) {