]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Another pass at cleaning up (some of) the manpages.
[nmh] / uip / mhfixmsg.c
index d5107c60228b44557a8c744b24c6db1ae3780315..65abd513e7a95d25a2f67c8838a2d6e9c71ccae1 100644 (file)
@@ -583,7 +583,16 @@ fix_boundary (CT *ct, int *message_mods) {
                 }
 
                 free (part_boundary);
+            } else {
+                /* Couldn't fix the boundary.  Report failure so that mhfixmsg
+                   doesn't modify the message. */
+                status = NOTOK;
             }
+        } else {
+            /* No multipart struct, even though the content type is
+               CT_MULTIPART.  Report failure so that mhfixmsg doesn't modify
+               the message. */
+            status = NOTOK;
         }
     }