httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r233127 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c
Date Wed, 17 Aug 2005 05:36:06 GMT
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;



Mime
View raw message