diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2017-05-29 16:34:35 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2017-05-29 16:34:35 +0300 |
commit | 0514e14a8bbd8e5977712c892b53aa471a91fcb5 (patch) | |
tree | 824314c5c324d28e428a91ec009f722b6b63f43b /src/stream/ngx_stream_ssl_module.c | |
parent | 2db69fed2c200a4f4017e82bc9239f22dfac846f (diff) | |
download | nginx-0514e14a8bbd8e5977712c892b53aa471a91fcb5.tar.gz nginx-0514e14a8bbd8e5977712c892b53aa471a91fcb5.zip |
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.
Diffstat (limited to 'src/stream/ngx_stream_ssl_module.c')
-rw-r--r-- | src/stream/ngx_stream_ssl_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_ssl_module.c b/src/stream/ngx_stream_ssl_module.c index 937efea57..da26a41f7 100644 --- a/src/stream/ngx_stream_ssl_module.c +++ b/src/stream/ngx_stream_ssl_module.c @@ -365,7 +365,7 @@ ngx_stream_ssl_init_connection(ngx_ssl_t *ssl, ngx_connection_t *c) return NGX_ERROR; } - if (ngx_ssl_create_connection(ssl, c, 0) == NGX_ERROR) { + if (ngx_ssl_create_connection(ssl, c, 0) != NGX_OK) { return NGX_ERROR; } |