Mercurial > hg > nginx
changeset 7268:0d8c72ff62dd
Mail: fixed error message about missing ssl_certificate_key.
In 51e1f047d15d, the "ssl" directive name was incorrectly hardcoded
in the error message shown when there are some SSL keys defined, but
not for all certificates. Right approach is to use the "mode" variable,
which can be either "ssl" or "starttls".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 24 Apr 2018 15:28:58 +0300 |
parents | 7c614ef3c6ea |
children | 7f955d3b9a0d |
files | src/mail/ngx_mail_ssl_module.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mail/ngx_mail_ssl_module.c Wed Apr 18 16:11:41 2018 +0300 +++ b/src/mail/ngx_mail_ssl_module.c Tue Apr 24 15:28:58 2018 +0300 @@ -350,10 +350,10 @@ ngx_log_error(NGX_LOG_EMERG, cf->log, 0, "no \"ssl_certificate_key\" is defined " "for certificate \"%V\" and " - "the \"ssl\" directive in %s:%ui", + "the \"%s\" directive in %s:%ui", ((ngx_str_t *) conf->certificates->elts) + conf->certificates->nelts - 1, - conf->file, conf->line); + mode, conf->file, conf->line); return NGX_CONF_ERROR; }