fixed logging

Change-Id: I568e5f3cc4fbe898a77bde7c7a16ffc88edf546d
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2017-03-04 17:45:39 +01:00
parent 2b4c64de0e
commit a59e322c2c

View File

@ -167,7 +167,7 @@ int init_ssl(struct smtp_session *session){
session->ctx = SSL_CTX_new(TLSv1_server_method()); session->ctx = SSL_CTX_new(TLSv1_server_method());
if(session->ctx == NULL){ if(session->ctx == NULL){
syslog(LOG_PRIORITY, "%s: SSL ctx is null!", session->ttmpfile); syslog(LOG_PRIORITY, "SSL ctx is null");
return 0; return 0;
} }
@ -208,7 +208,7 @@ void process_command_starttls(struct smtp_session *session){
return; return;
} syslog(LOG_PRIORITY, "%s: SSL_set_fd() failed", session->ttmpfile); } syslog(LOG_PRIORITY, "%s: SSL_set_fd() failed", session->ttmpfile);
} syslog(LOG_PRIORITY, "%s: SSL_new() failed", session->ttmpfile); } syslog(LOG_PRIORITY, "%s: SSL_new() failed", session->ttmpfile);
} syslog(LOG_PRIORITY, "%s: SSL ctx is null!", session->ttmpfile); } syslog(LOG_PRIORITY, "SSL ctx is null!");
send_smtp_response(session, SMTP_RESP_454_ERR_TLS_TEMP_ERROR); send_smtp_response(session, SMTP_RESP_454_ERR_TLS_TEMP_ERROR);
} }