httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r314957 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
Date Wed, 12 Oct 2005 16:30:21 GMT
Author: jerenkrantz
Date: Wed Oct 12 09:30:17 2005
New Revision: 314957

URL: http://svn.apache.org/viewcvs?rev=314957&view=rev
Log:
Fix segfault if we are requested a present, but invalid mime part.

* module-2.0/mod_mbox_out.c
  (mbox_raw_message): If the body of the part isn't present, treat is as an
  HTTP not found.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c?rev=314957&r1=314956&r2=314957&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c Wed Oct 12 09:30:17 2005
@@ -965,7 +965,8 @@
 
 	if (mime_part &&
 	    (num <= mime_part->sub_count) &&
-	    mime_part->sub[num - 1]) {
+	    mime_part->sub[num - 1] &&
+	    mime_part->sub[num - 1]->body != NULL) {
 	    mime_part = mime_part->sub[num - 1];
 	}
 	else {



Mime
View raw message