summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket_p.h
diff options
context:
space:
mode:
authorFranck Dude <enstone83@gmail.com>2019-12-07 16:46:52 +0100
committerFranck Dude <enstone83@gmail.com>2019-12-13 20:09:40 +0100
commitcea5603ee1a56bb5d177f35ed3f884345875099e (patch)
treec7c942c55fc767d8a3f3beed93dcea0bfb8b4b63 /src/websockets/qwebsocket_p.h
parent92cec7af3ee88673d58e70e5b9a84a0cf55aa734 (diff)
downloadqtwebsockets-cea5603ee1a56bb5d177f35ed3f884345875099e.tar.gz
Fix websocket handshake request header parsing
Header ends with \r\n\r\n but there might be more data inside the tcpbuffer Never read past the header Task-number: QTBUG-70000 Change-Id: If3d4cb362646e43a91faf00f89e50510ff00fa56 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r--src/websockets/qwebsocket_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h
index e72daa5..1db1077 100644
--- a/src/websockets/qwebsocket_p.h
+++ b/src/websockets/qwebsocket_p.h
@@ -182,7 +182,7 @@ private:
Q_REQUIRED_RESULT qint64 doWriteFrames(const QByteArray &data, bool isBinary);
- void makeConnections(const QTcpSocket *pTcpSocket);
+ void makeConnections(QTcpSocket *pTcpSocket);
void releaseConnections(const QTcpSocket *pTcpSocket);
QByteArray getFrameHeader(QWebSocketProtocol::OpCode opCode, quint64 payloadLength,