forked from qt-creator/qt-creator
SSH: Catch all exceptions in SshConnectionPrivate::closeConnection
SshClientException or SshServerException might be thrown in SshAbstractCryptoFacility::convert Change-Id: I0950ce8d7979c171926a12f6c6d94abeffcc4b93 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -802,7 +802,7 @@ void SshConnectionPrivate::closeConnection(SshErrorCode sshError,
|
||||
try {
|
||||
m_channelManager->closeAllChannels(SshChannelManager::CloseAllAndReset);
|
||||
m_sendFacility.sendDisconnectPacket(sshError, serverErrorString);
|
||||
} catch (const Botan::Exception &) {} // Nothing sensible to be done here.
|
||||
} catch (...) {} // Nothing sensible to be done here.
|
||||
if (m_error != SshNoError)
|
||||
emit error(userError);
|
||||
if (m_state == ConnectionEstablished)
|
||||
|
||||
Reference in New Issue
Block a user