mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 17:50:13 +01:00
fix bdat command detection
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
65cd19b047
commit
a0fb4137a5
@ -47,7 +47,7 @@ void process_smtp_command(struct smtp_session *session, char *buf, struct config
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Support only BDAT xxxx LAST command */
|
/* Support only BDAT xxxx LAST command */
|
||||||
if(session->cfg->enable_chunking == 1 && strncasecmp(buf, SMTP_CMD_BDAT, strlen(SMTP_CMD_BDAT)) == 0 && strncasecmp(buf, "LAST", strlen(SMTP_CMD_BDAT)) == 0){
|
if(session->cfg->enable_chunking == 1 && strncasecmp(buf, SMTP_CMD_BDAT, strlen(SMTP_CMD_BDAT)) == 0 && strncasecmp(buf, "LAST", 4) == 0){
|
||||||
get_bdat_size_to_read(session, buf);
|
get_bdat_size_to_read(session, buf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user