SPDY: always check size of data to be saved into state buffer.

This commit is contained in:
Maxim Dounin 2014-03-18 17:00:19 +04:00
parent 135a8680ac
commit 7c6c99a10a
1 changed files with 1 additions and 1 deletions

View File

@ -1465,7 +1465,7 @@ static u_char *
ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc,
u_char *pos, u_char *end, ngx_http_spdy_handler_pt handler)
{
#if (NGX_DEBUG)
#if 1
if (end - pos > NGX_SPDY_STATE_BUFFER_SIZE) {
ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
"spdy state buffer overflow: "