Fix previose checking "Null reference exception"

This commit is contained in:
olegkap_cp
2011-01-02 06:39:36 +00:00
parent c5806a42b0
commit c4d21cf3fd
@@ -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();