summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access/http2
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-08-17 12:44:16 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-08-17 20:23:59 +0000
commit2e4e73d8d3cb0c366ef530541b9ea4d58c85dc77 (patch)
tree016988d2cdb37aa33bb64465923f7d8cab16ab5d /tests/auto/network/access/http2
parent3c5b9977cde8ede3377fc5c53faaf19c258256a6 (diff)
HTTP/2 - fix invalid read (auto-test)
Since headersFrame is a reference to a vector's element, clearing this vector before accessing headersFrame.flags is not a good idea, must be done later. Change-Id: I80eee0761ac1cad580e979be9371ec7588a694ac Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/network/access/http2')
-rw-r--r--tests/auto/network/access/http2/http2srv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/access/http2/http2srv.cpp b/tests/auto/network/access/http2/http2srv.cpp
index 9bc7c38875..18a41cb2c0 100644
--- a/tests/auto/network/access/http2/http2srv.cpp
+++ b/tests/auto/network/access/http2/http2srv.cpp
@@ -625,12 +625,12 @@ void Http2Server::processRequest()
return;
}
- continuedRequest.clear();
// Actually, if needed, we can do a comparison here.
activeRequests[streamID] = decoder.decodedHeader();
if (headersFrame.flags.testFlag(FrameFlag::END_STREAM))
emit receivedRequest(streamID);
// else - we're waiting for incoming DATA frames ...
+ continuedRequest.clear();
}
QT_END_NAMESPACE