Skip to content
Snippets Groups Projects
Commit 8cd79975 authored by rswindell's avatar rswindell
Browse files

SMPT RCP TO command now fails if no RCPT TO argument specified.

parent b252054f
No related branches found
No related tags found
No related merge requests found
...@@ -2859,6 +2859,13 @@ static void smtp_thread(void* arg) ...@@ -2859,6 +2859,13 @@ static void smtp_thread(void* arg)
p+=strlen(NO_FORWARD); p+=strlen(NO_FORWARD);
} }
if(*p==0) {
lprintf(LOG_WARNING,"%04d !SMTP NO RECIPIENT SPECIFIED"
,socket);
sockprintf(socket, "500 No recipient specified");
continue;
}
rcpt_name[0]=0; rcpt_name[0]=0;
SAFECOPY(rcpt_addr,p); SAFECOPY(rcpt_addr,p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment