diff options
-rw-r--r-- | src/os/unix/ngx_readv_chain.c | 4 | ||||
-rw-r--r-- | src/os/unix/ngx_recv.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/os/unix/ngx_readv_chain.c b/src/os/unix/ngx_readv_chain.c index 981521f65..d23508ea7 100644 --- a/src/os/unix/ngx_readv_chain.c +++ b/src/os/unix/ngx_readv_chain.c @@ -143,9 +143,7 @@ ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *chain, off_t limit) rev->ready = 0; } - if (rev->available < 0) { - rev->available = 0; - } + rev->available = 0; } return n; diff --git a/src/os/unix/ngx_recv.c b/src/os/unix/ngx_recv.c index 4bb725f7c..5013ae34c 100644 --- a/src/os/unix/ngx_recv.c +++ b/src/os/unix/ngx_recv.c @@ -93,9 +93,7 @@ ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) rev->ready = 0; } - if (rev->available < 0) { - rev->available = 0; - } + rev->available = 0; } return n; |