Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 4535 invoked from network); 17 Aug 2005 05:36:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 05:36:09 -0000 Received: (qmail 83019 invoked by uid 500); 17 Aug 2005 05:36:08 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 82997 invoked by uid 500); 17 Aug 2005 05:36:07 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 82984 invoked by uid 99); 17 Aug 2005 05:36:07 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 16 Aug 2005 22:36:07 -0700 Received: (qmail 4419 invoked by uid 65534); 17 Aug 2005 05:36:06 -0000 Message-ID: <20050817053606.4409.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r233127 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Date: Wed, 17 Aug 2005 05:36:06 -0000 To: cvs@httpd.apache.org From: pquerna@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: pquerna Date: Tue Aug 16 22:36:03 2005 New Revision: 233127 URL: http://svn.apache.org/viewcvs?rev=233127&view=rev Log: If calculate_threads returns NULL, stop there. This should hopefully stop the crash that is plauging Ajax. Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c?rev=233127&r1=233126&r2=233127&view=diff ============================================================================== --- httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c (original) +++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Tue Aug 16 22:36:03 2005 @@ -289,12 +289,18 @@ break; case MBOX_PREV_THREAD: c = calculate_threads(r->pool, head); + if (!c) { + break; + } c = find_prev_thread(r, msgID, c); if (c && c->message) newMsgID = c->message->msgID; break; case MBOX_NEXT_THREAD: c = calculate_threads(r->pool, head); + if (!c) { + break; + } c = find_next_thread(r, msgID, c); if (c && c->message) newMsgID = c->message->msgID;