]> git.kaiwu.me - nginx.git/commitdiff
SPDY: always check size of data to be saved into state buffer.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 18 Mar 2014 13:00:19 +0000 (17:00 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 18 Mar 2014 13:00:19 +0000 (17:00 +0400)
src/http/ngx_http_spdy.c

index e9bad94441476518e1720e06e1577d98b4e3b9ff..6e45f4b46c856a3e6367890863fbbc987687e34f 100644 (file)
@@ -1872,7 +1872,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: "