]> granicus.if.org Git - mutt/commitdiff
Avoid crashing when forwarding message/rfc822-type attachments.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 22 Jun 2000 23:18:36 +0000 (23:18 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 22 Jun 2000 23:18:36 +0000 (23:18 +0000)
muttlib.c

index ff2333b5d3914ebc6e8e057bdbdbeea950a559aa..04fa7fe2b271183cefa72a6157d691530c0e35ac 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -136,6 +136,13 @@ int mutt_copy_body (FILE *fp, BODY **tgt, BODY *src)
   b->filename = safe_strdup (b->filename);
   b->d_filename = safe_strdup (b->d_filename);
   b->description = safe_strdup (b->description);
+
+  /* 
+   * we don't seem to need the HEADER structure currently.
+   * XXX - this may change in the future
+   */
+
+  if (b->hdr) b->hdr = NULL;
   
   /* copy parameters */
   for (par = b->parameter, ppar = &b->parameter; par; ppar = &(*ppar)->next, par = par->next)