mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 00:08:02 +00:00
Fix possible use-after-free in test connections.
This commit is contained in:
parent
b2aac8006c
commit
3e3696298f
@ -189,8 +189,9 @@ void SessionPrivate::appendTestConnection(
|
||||
});
|
||||
});
|
||||
|
||||
const auto protocolDcId = getProtocolDcId();
|
||||
InvokeQueued(_testConnections.back().data, [=] {
|
||||
weak->connectToServer(ip, port, protocolSecret, getProtocolDcId());
|
||||
weak->connectToServer(ip, port, protocolSecret, protocolDcId);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user