diff --git a/src/session.c b/src/session.c index d76e8ab1..d09add30 100644 --- a/src/session.c +++ b/src/session.c @@ -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; }