Add another patch to fix build the mail module

without SSL support.
This commit is contained in:
Sergey A. Osokin 2021-03-11 15:33:49 +00:00
parent 1fe9af7d0c
commit 4ac4bf55b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=568099

View file

@ -0,0 +1,20 @@
--- src/mail/ngx_mail_handler.c.orig 2021-03-10 10:39:31.807351000 -0500
+++ src/mail/ngx_mail_handler.c 2021-03-10 10:41:28.739497000 -0500
@@ -273,14 +273,15 @@
ngx_mail_init_session_handler(ngx_event_t *rev)
{
ngx_connection_t *c;
- ngx_mail_session_t *s;
c = rev->data;
- s = c->data;
#if (NGX_MAIL_SSL)
{
+ ngx_mail_session_t *s;
ngx_mail_ssl_conf_t *sslcf;
+
+ s = c->data;
sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module);