summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-02-16 12:24:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-16 12:25:04 +0100
commit8cf5cb96a8f49b4a2fd816e10dab385463becb43 (patch)
tree45faa6112497622b63f2b7c4b8ee3bfab7cff5a3
parent5b8172c5ae60a2247b1a390e7262e756115a1dc1 (diff)
downloadqtwebsockets-8cf5cb96a8f49b4a2fd816e10dab385463becb43.tar.gz
Fix non-strict warning from AutoBahn
When the reserved bits were set to 3, then the connection was aborted. No a close message is sent before the connection is closed. Change-Id: Iab365a4720c6588e5c6ac73813f63d26c3312265 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
-rw-r--r--src/websockets/qwebsocketframe.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/websockets/qwebsocketframe.cpp b/src/websockets/qwebsocketframe.cpp
index 7aaa6aa..431710c 100644
--- a/src/websockets/qwebsocketframe.cpp
+++ b/src/websockets/qwebsocketframe.cpp
@@ -536,8 +536,6 @@ void QWebSocketFrame::setError(QWebSocketProtocol::CloseCode code, const QString
*/
bool QWebSocketFrame::checkValidity()
{
- if (isValid())
- return true;
if (Q_UNLIKELY(m_rsv1 || m_rsv2 || m_rsv3)) {
setError(QWebSocketProtocol::CloseCodeProtocolError, QObject::tr("Rsv field is non-zero"));
} else if (Q_UNLIKELY(QWebSocketProtocol::isOpCodeReserved(m_opCode))) {