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:
Robert Loehning
2017-02-22 12:36:11 +01:00
parent 65d6a5aa0f
commit 936ad724d0

View File

@@ -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)