aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-03-19 19:30:09 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-03-19 19:30:09 +0400
commitec1211d2f6f1f01af6e3510a932c7fc69de0f46a (patch)
tree06b921aefad867c88e3f6e238a027acb0992b4c7
parent898ca36c3333c16b908d8c1040d1824bf31e2b48 (diff)
downloadnginx-ec1211d2f6f1f01af6e3510a932c7fc69de0f46a.tar.gz
nginx-ec1211d2f6f1f01af6e3510a932c7fc69de0f46a.zip
SPDY: improved ngx_http_spdy_state_save() again.
-rw-r--r--src/http/ngx_http_spdy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c
index 24772bd2e..f6cf2ffba 100644
--- a/src/http/ngx_http_spdy.c
+++ b/src/http/ngx_http_spdy.c
@@ -1879,13 +1879,13 @@ ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc,
if (size > NGX_SPDY_STATE_BUFFER_SIZE) {
ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
"spdy state buffer overflow: "
- "%z bytes required", end - pos);
+ "%uz bytes required", size);
return ngx_http_spdy_state_internal_error(sc);
}
ngx_memcpy(sc->buffer, pos, NGX_SPDY_STATE_BUFFER_SIZE);
- sc->buffer_used = end - pos;
+ sc->buffer_used = size;
sc->handler = handler;
sc->incomplete = 1;