You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2005/10/12 18:44:49 UTC

svn commit: r314961 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c

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;
 		}
 	    }