8000 Fixes incorrect hashes assignment (temporary solution) · XavierDa/libgit2sharp-ssh@65a3491 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65a3491

Browse files
committed
Fixes incorrect hashes assignment (temporary solution)
1 parent 0a88f95 commit 65a3491

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

LibGit2Sharp/CertificateSsh.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ protected CertificateSsh()
4141

4242
internal unsafe CertificateSsh(git_certificate_ssh* cert)
4343
{
44-
4544
HasMD5 = cert->type.HasFlag(GitCertificateSshType.MD5);
4645
HasSHA1 = cert->type.HasFlag(GitCertificateSshType.SHA1);
4746

@@ -50,7 +49,7 @@ internal unsafe CertificateSsh(git_certificate_ssh* cert)
5049
{
5150
for (var i = 0; i < HashMD5.Length; i++)
5251
{
53-
HashMD5[i] = p[i];
52+
p[i] = cert->HashMD5[i];
5453
}
5554
}
5655

@@ -59,7 +58,7 @@ internal unsafe CertificateSsh(git_certificate_ssh* cert)
5958
{
6059
for (var i = 0; i < HashSHA1.Length; i++)
6160
{
62-
HashSHA1[i] = p[i];
61+
p[i] = cert->HashSHA1[i];
6362
}
6463
}
6564
}

0 commit comments

Comments
 (0)
0