diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-12-10 12:09:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-10 12:09:51 +0000 |
| commit | 86ef6aaa6b574f2015a5094670b7123c425a63af (patch) | |
| tree | e0b78dcc48085162b29fbff2c0aeb7e5bd75c654 /src/mail/ngx_mail_smtp_handler.c | |
| parent | e60049418525a5e605765aa2b8f9c6796eb390a6 (diff) | |
| download | nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.gz nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.bz2 | |
move condition declarations inside blocks where they are used
Diffstat (limited to 'src/mail/ngx_mail_smtp_handler.c')
| -rw-r--r-- | src/mail/ngx_mail_smtp_handler.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mail/ngx_mail_smtp_handler.c b/src/mail/ngx_mail_smtp_handler.c index 96cb762ed..84722f4ee 100644 --- a/src/mail/ngx_mail_smtp_handler.c +++ b/src/mail/ngx_mail_smtp_handler.c @@ -319,9 +319,6 @@ ngx_mail_smtp_helo(ngx_mail_session_t *s, ngx_connection_t *c) { ngx_str_t *arg; ngx_mail_smtp_srv_conf_t *sscf; -#if (NGX_MAIL_SSL) - ngx_mail_ssl_conf_t *sslcf; -#endif if (s->args.nelts != 1) { s->out.len = sizeof(smtp_invalid_argument) - 1; @@ -352,6 +349,8 @@ ngx_mail_smtp_helo(ngx_mail_session_t *s, ngx_connection_t *c) #if (NGX_MAIL_SSL) if (c->ssl == NULL) { + ngx_mail_ssl_conf_t *sslcf; + sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); if (sslcf->starttls == NGX_MAIL_STARTTLS_ON) { |
