src: fix smtp response code for helo command

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-08-08 20:27:19 +02:00
parent ac3ae0e2f3
commit f4f0806e40

View File

@ -152,7 +152,7 @@ void send_smtp_response(struct smtp_session *session, char *buf){
void process_command_helo(struct smtp_session *session, char *buf, int buflen){
if(session->protocol_state == SMTP_STATE_INIT) session->protocol_state = SMTP_STATE_HELO;
snprintf(buf, buflen-1, "220 %s ESMTP\r\n", session->cfg->hostid);
snprintf(buf, buflen-1, "250 %s\r\n", session->cfg->hostid);
send_smtp_response(session, buf);
}