summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Niccoli <lultimouomo@gmail.com>2015-03-09 19:20:26 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-04-08 06:55:15 +0000
commit30b5e99da347aea446a5a3a334a21a4406adc4fe (patch)
treeb4c7ede1be187a9451c638fdaf2b636e21a32232 /src
parent22c10dc825cb8fe329391dc23d8cd30397a3823e (diff)
downloadqtwebsockets-30b5e99da347aea446a5a3a334a21a4406adc4fe.tar.gz
Always initialize m_handshakeState
The client-side constructor was leaving it uninitialized, which would sometimes lead to spurious error signals being emitted. Task-number: QTBUG-44893 Change-Id: I7a17f1a16d9a5fe4218beb6d92993c1889ad836b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/websockets/qwebsocket_p.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp
index 2bb5151..8aa2fe1 100644
--- a/src/websockets/qwebsocket_p.cpp
+++ b/src/websockets/qwebsocket_p.cpp
@@ -105,7 +105,8 @@ QWebSocketPrivate::QWebSocketPrivate(const QString &origin, QWebSocketProtocol::
m_dataProcessor(),
m_configuration(),
m_pMaskGenerator(&m_defaultMaskGenerator),
- m_defaultMaskGenerator()
+ m_defaultMaskGenerator(),
+ m_handshakeState(NothingDoneState)
{
}