format fix

This commit is contained in:
SJ 2014-05-23 11:35:41 +02:00
parent 7a773de8d1
commit 8227183443

View File

@ -75,7 +75,8 @@ int handle_smtp_session(int new_sd, struct __data *data, struct __config *cfg){
#endif
if(db_conn == 0){
send(new_sd, SMTP_RESP_421_ERR_TMP, strlen(SMTP_RESP_421_ERR_TMP), 0);
snprintf(buf, MAXBUFSIZE-1, SMTP_RESP_421_ERR_TMP, cfg->hostid);
send(new_sd, buf, strlen(buf), 0);
syslog(LOG_PRIORITY, "cannot make prepared statement");
return 0;
}