Skip to content
Snippets Groups Projects
Commit 304f7293 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2851 passed
......@@ -4574,9 +4574,9 @@ static void smtp_thread(void* arg)
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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment