Mercurial > hg > nginx
comparison src/stream/ngx_stream_ssl_module.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 | 29c6d66b83ba |
children | 2a288909abc6 |
comparison
equal
deleted
inserted
replaced
7008:29c6d66b83ba | 7009:03444167a3bb |
---|---|
363 | 363 |
364 if (cscf->tcp_nodelay && ngx_tcp_nodelay(c) != NGX_OK) { | 364 if (cscf->tcp_nodelay && ngx_tcp_nodelay(c) != NGX_OK) { |
365 return NGX_ERROR; | 365 return NGX_ERROR; |
366 } | 366 } |
367 | 367 |
368 if (ngx_ssl_create_connection(ssl, c, 0) == NGX_ERROR) { | 368 if (ngx_ssl_create_connection(ssl, c, 0) != NGX_OK) { |
369 return NGX_ERROR; | 369 return NGX_ERROR; |
370 } | 370 } |
371 | 371 |
372 rc = ngx_ssl_handshake(c); | 372 rc = ngx_ssl_handshake(c); |
373 | 373 |