Mercurial > hg > nginx
diff src/mail/ngx_mail_auth_http_module.c @ 7801:777373b5a169
Mail: fixed build without SSL.
Broken by d84f13618277 and 12ea1de7d87c (1.19.8).
Reported by Sergey Osokin.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 11 Mar 2021 04:46:26 +0300 |
parents | 12ea1de7d87c |
children | 13d0c1d26d47 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_auth_http_module.c Thu Mar 11 04:46:22 2021 +0300 +++ b/src/mail/ngx_mail_auth_http_module.c Thu Mar 11 04:46:26 2021 +0300 @@ -1135,10 +1135,10 @@ size_t len; ngx_buf_t *b; ngx_str_t login, passwd; + ngx_connection_t *c; #if (NGX_MAIL_SSL) ngx_str_t verify, subject, issuer, serial, fingerprint, raw_cert, cert; - ngx_connection_t *c; ngx_mail_ssl_conf_t *sslcf; #endif ngx_mail_core_srv_conf_t *cscf; @@ -1151,9 +1151,10 @@ return NULL; } + c = s->connection; + #if (NGX_MAIL_SSL) - c = s->connection; sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); if (c->ssl && sslcf->verify) {