From c4d21cf3fd61ec46a415869e4b091551769338ab Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Sun, 2 Jan 2011 06:39:36 +0000 Subject: [PATCH] Fix previose checking "Null reference exception" --- Renci.SshClient/Renci.SshClient/Session.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Renci.SshClient/Renci.SshClient/Session.cs b/Renci.SshClient/Renci.SshClient/Session.cs index ea78ea88..0f357bb2 100644 --- a/Renci.SshClient/Renci.SshClient/Session.cs +++ b/Renci.SshClient/Renci.SshClient/Session.cs @@ -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();