Stream: fixed possible integer overflow in rate limiting.

This commit is contained in:
Valentin Bartenev 2015-07-02 17:20:29 +03:00
parent 035732696d
commit cd17f869cf

View File

@ -1062,7 +1062,7 @@ ngx_stream_proxy_process(ngx_stream_session_t *s, ngx_uint_t from_upstream,
break;
}
if (size > (size_t) limit) {
if ((off_t) size > limit) {
size = (size_t) limit;
}
}