mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
src: fix smtp response code for helo command
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
ac3ae0e2f3
commit
f4f0806e40
@ -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){
|
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;
|
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);
|
send_smtp_response(session, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user