This commit is contained in:
Maxim Dounin 2014-10-14 20:19:36 +04:00
parent 2244a5e9cf
commit 9369cf8df3

View File

@ -156,7 +156,8 @@ ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
/* the maximum limit size is the maximum u_long value - the page size */
if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) {
if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize))
{
limit = NGX_MAX_UINT32_VALUE - ngx_pagesize;
}