aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorPiotr Sikora <piotr@cloudflare.com>2014-02-03 14:17:17 -0800
committerPiotr Sikora <piotr@cloudflare.com>2014-02-03 14:17:17 -0800
commitab3c0f9250f248b37aac9f79359a773f06baa831 (patch)
treeb51d05aa4beba2b966bf118f834be122638ad207 /src/http/ngx_http_request.c
parent07aef702eecc784b0eda19a673d9a76939a7ca67 (diff)
downloadnginx-ab3c0f9250f248b37aac9f79359a773f06baa831.tar.gz
nginx-ab3c0f9250f248b37aac9f79359a773f06baa831.zip
Use ngx_socket_errno where appropriate.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 0bb1b8cde..5f2cf7d39 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2707,7 +2707,7 @@ ngx_http_test_reading(ngx_http_request_t *r)
if (getsockopt(c->fd, SOL_SOCKET, SO_ERROR, (void *) &err, &len)
== -1)
{
- err = ngx_errno;
+ err = ngx_socket_errno;
}
goto closed;