diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
| commit | 1f4220ee869152938d9140c471c37be628532344 (patch) | |
| tree | bb17b08acf1f50770fec0846cd6202a593b93674 /src/http/ngx_http_upstream.c | |
| parent | 9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff) | |
| download | nginx-1f4220ee869152938d9140c471c37be628532344.tar.gz nginx-1f4220ee869152938d9140c471c37be628532344.tar.bz2 | |
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/http/ngx_http_upstream.c')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 6ed7c8f1c..5458a5816 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -860,7 +860,7 @@ ngx_http_upstream_ssl_init_connection(ngx_http_request_t *r, if (ngx_ssl_create_connection(u->conf->ssl, c, NGX_SSL_BUFFER|NGX_SSL_CLIENT) - == NGX_ERROR) + != NGX_OK) { ngx_http_upstream_finalize_request(r, u, NGX_HTTP_INTERNAL_SERVER_ERROR); |
