From b115dacc83ddcda0e7e3961be9911fc93572cd4c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Feb 1999 14:16:16 +0000 Subject: Dan Flater's bug. svn path=/trunk/; revision=2394 --- NEWS | 1 + sink.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c5b251fe..be8bb18b 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,7 @@ fetchmail-5.0.0 (): * Patch by Dan Root to solve an endianness problem in IMAP-K4. * Fix lexical-analyzer bug that rejected `set nobouncemail', +* Prevent send_bouncemail from stepping on SMTP antispam response. There are 262 people on fetchmail-friends and 356 on fetchmail-announce. diff --git a/sink.c b/sink.c index 72d97904..d854ba20 100644 --- a/sink.c +++ b/sink.c @@ -375,7 +375,8 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg) int smtperr = atoi(smtp_response); char *responses[1]; - responses[0] = smtp_response; + xalloca(responses[0], char *, strlen(smtp_response)+1); + strcpy(responses[0], smtp_response); /* required by RFC1870; sets us up to be able to send bouncemail */ SMTP_rset(ctl->smtp_socket); -- cgit v1.2.3