diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2018-04-24 15:28:58 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-04-24 15:28:58 +0300 |
commit | 5d3a854ebd4f59854ade798b94070ff1ee3eddcf (patch) | |
tree | 6fc0b8b6881403a38a1d88250e2a3e7c70b74afe /src | |
parent | 8b4c7725d2015637584c4fa66667ad1ced21edb8 (diff) | |
download | nginx-5d3a854ebd4f59854ade798b94070ff1ee3eddcf.tar.gz nginx-5d3a854ebd4f59854ade798b94070ff1ee3eddcf.zip |
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".
Diffstat (limited to 'src')
-rw-r--r-- | src/mail/ngx_mail_ssl_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mail/ngx_mail_ssl_module.c b/src/mail/ngx_mail_ssl_module.c index aebd179d0..7cfd3b9fb 100644 --- a/src/mail/ngx_mail_ssl_module.c +++ b/src/mail/ngx_mail_ssl_module.c @@ -350,10 +350,10 @@ ngx_mail_ssl_merge_conf(ngx_conf_t *cf, void *parent, void *child) 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; } |