diff options
author | Piotr Sikora <piotr@cloudflare.com> | 2014-02-03 14:17:17 -0800 |
---|---|---|
committer | Piotr Sikora <piotr@cloudflare.com> | 2014-02-03 14:17:17 -0800 |
commit | ab3c0f9250f248b37aac9f79359a773f06baa831 (patch) | |
tree | b51d05aa4beba2b966bf118f834be122638ad207 /src/os/unix/ngx_freebsd_sendfile_chain.c | |
parent | 07aef702eecc784b0eda19a673d9a76939a7ca67 (diff) | |
download | nginx-ab3c0f9250f248b37aac9f79359a773f06baa831.tar.gz nginx-ab3c0f9250f248b37aac9f79359a773f06baa831.zip |
Use ngx_socket_errno where appropriate.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index b8665e042..11cec8226 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -231,7 +231,7 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) { if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { - err = ngx_errno; + err = ngx_socket_errno; /* * there is a tiny chance to be interrupted, however, |