httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r314961 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
Date Wed, 12 Oct 2005 16:44:49 GMT
Author: jerenkrantz
Date: Wed Oct 12 09:44:45 2005
New Revision: 314961

URL: http://svn.apache.org/viewcvs?rev=314961&view=rev
Log:
If we didn't find a parseable or zero-length MIME part, don't adjust body_len.

* mod_mbox_mime.c
  (mbox_mime_decode_multipart): If the body part is zero-length, don't touch.

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

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=314961&r1=314960&r2=314961&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Wed Oct 12 09:44:45 2005
@@ -243,7 +243,7 @@
 
 		search = inbound + strlen(mail->boundary) + 1;
 
-		if (mail->sub[count-1]) {
+		if (mail->sub[count-1] && mail->sub[count-1]->body) {
 		    mail->sub[count-1]->body_len = inbound - mail->sub[count-1]->body - 2;
 		}
 	    }



Mime
View raw message