Commit 304f7293 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix issue with smtpspy-listed names added in previous commit

p (which is used after this) points into 'str', so we can't use 'str' as a temporary variable here.
parent 9f1cfeda
Pipeline #2851 passed with stage
in 9 minutes and 53 seconds
......@@ -4571,12 +4571,12 @@ static void smtp_thread(void* arg)
break;
}
if(spy==NULL
if(spy==NULL
&& (trashcan(&scfg,reverse_path,"smtpspy")
|| trashcan(&scfg,rcpt_addr,"smtpspy"))) {
SAFECOPY(str, client.protocol);
strlwr(str);
SAFEPRINTF2(path,"%s%sspy.txt", scfg.logs_dir, str);
SAFECOPY(tmp, client.protocol);
strlwr(tmp);
SAFEPRINTF2(path,"%s%sspy.txt", scfg.logs_dir, tmp);
spy=fopen(path,"a");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment