Commit 7e47d040 authored by Matthias Gerstner's avatar Matthias Gerstner Committed by Albert Vaca Cintora
Browse files

Fix use after free in LanLinkProvider::connectError()

If QSslSocket::connectToHost() hasn't finished running.

Thanks Matthias Gerstner <> for reporting this.
parent aa84aa5d
......@@ -270,7 +270,7 @@ void LanLinkProvider::connectError(QAbstractSocket::SocketError socketError)
//The socket we created didn't work, and we didn't manage
//to create a LanDeviceLink from it, deleting everything.
delete m_receivedIdentityPackets.take(socket).np;
delete socket;
//We received a UDP packet and answered by connecting to them by TCP. This gets called on a successful connection.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment