summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pith/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/send.c b/pith/send.c
index 75cd2bac..e72b6d98 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -4127,9 +4127,9 @@ remove_parameter(PARAMETER **param, char *paramname)
PARAMETER om, *qm;
om.next = *param;
for(qm = &om; qm->next != pm; qm = qm->next);
- qm->next = pm->next;
- pm->next = NULL;
+ qm->next = copy_parameters(pm->next);
mail_free_body_parameter(&pm);
+ *param = om.next;
}
}