From 241bbd1529accb2b25b46227bd6ecf0fd526c513 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Fri, 7 Oct 2016 10:14:53 +0800 Subject: [PATCH] FS-9622 #resolve fix buffer size calculation in http interface in mod_verto --- src/mod/endpoints/mod_verto/mod_verto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 5a28234082..9fcf229315 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -1613,7 +1613,7 @@ new_req: goto request_err; } - if ((bytes = request.bytes_buffered - (request.bytes_read - request.bytes_header)) > 0) { + if ((bytes = request.bytes_buffered - request.bytes_read) > 0) { memcpy(buffer, jsock->ws.buffer + request.bytes_read, bytes); }