Browse Source

Remove extra ToArray call.

Gert Driesen 11 years ago
parent
commit
6a68a5f22b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Renci.SshClient/Renci.SshNet/Security/KeyHostAlgorithm.cs

+ 1 - 1
Renci.SshClient/Renci.SshNet/Security/KeyHostAlgorithm.cs

@@ -62,7 +62,7 @@ namespace Renci.SshNet.Security
         /// </returns>
         public override byte[] Sign(byte[] data)
         {
-            return new SignatureKeyData(this.Name, this.Key.Sign(data)).GetBytes().ToArray();
+            return new SignatureKeyData(this.Name, this.Key.Sign(data)).GetBytes();
         }
 
         /// <summary>