mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
Fix previose checking "Null reference exception"
This commit is contained in:
@@ -1110,12 +1110,6 @@ namespace Renci.SshClient
|
||||
this._clientMac = null;
|
||||
}
|
||||
|
||||
if (this._keyExchange != null)
|
||||
{
|
||||
this._keyExchange.Dispose();
|
||||
this._keyExchange = null;
|
||||
}
|
||||
|
||||
// Update negotiated algorithms
|
||||
this._serverCipher = this._keyExchange.CreateServerCipher();
|
||||
this._clientCipher = this._keyExchange.CreateClientCipher();
|
||||
|
||||
Reference in New Issue
Block a user