Mercurial > hg > nginx
diff src/mail/ngx_mail_smtp_handler.c @ 1704:e584e946e198
move condition declarations inside blocks where they are used
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Dec 2007 12:09:51 +0000 |
parents | 3c4111e07b58 |
children | 7806f453183e |
line wrap: on
line diff
--- a/src/mail/ngx_mail_smtp_handler.c Sun Dec 09 20:52:14 2007 +0000 +++ b/src/mail/ngx_mail_smtp_handler.c Mon Dec 10 12:09:51 2007 +0000 @@ -319,9 +319,6 @@ { 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 @@ #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) {