Mercurial > hg > nginx
comparison src/mail/ngx_mail_handler.c @ 7009:03444167a3bb
Style: changed checks of ngx_ssl_create_connection() to != NGX_OK.
In http these checks were changed in a6d6d762c554, though mail module
was missed at that time. Since then, the stream module was introduced
based on mail, using "== NGX_ERROR" check.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 29 May 2017 16:34:35 +0300 |
parents | bcb107bb89cd |
children | 9d14931cec8c |
comparison
equal
deleted
inserted
replaced
7008:29c6d66b83ba | 7009:03444167a3bb |
---|---|
220 ngx_mail_ssl_init_connection(ngx_ssl_t *ssl, ngx_connection_t *c) | 220 ngx_mail_ssl_init_connection(ngx_ssl_t *ssl, ngx_connection_t *c) |
221 { | 221 { |
222 ngx_mail_session_t *s; | 222 ngx_mail_session_t *s; |
223 ngx_mail_core_srv_conf_t *cscf; | 223 ngx_mail_core_srv_conf_t *cscf; |
224 | 224 |
225 if (ngx_ssl_create_connection(ssl, c, 0) == NGX_ERROR) { | 225 if (ngx_ssl_create_connection(ssl, c, 0) != NGX_OK) { |
226 ngx_mail_close_connection(c); | 226 ngx_mail_close_connection(c); |
227 return; | 227 return; |
228 } | 228 } |
229 | 229 |
230 if (ngx_ssl_handshake(c) == NGX_AGAIN) { | 230 if (ngx_ssl_handshake(c) == NGX_AGAIN) { |