Fix #7793: Duplicate private keys generated (#7794)

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2018-07-18 22:11:34 +01:00
1 parent 3d85ec4ea1
commit 10f6059f09
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
- Fix: [#7765] Crash when opening ride list window on Windows Vista.
- Fix: [#7773] Once research has been completed, player is still charged for research.
- Fix: [#7786] Crash when importing a track design.
- Fix: [#7793] Duplicate private keys generated.
0.2.0 (2018-06-10)
------------------------------------------------------------------------
+1 -1
View File
@@ -129,7 +129,7 @@ bool NetworkKey::SavePublic(IStream * stream)
{
throw std::runtime_error("No key loaded");
}
auto pem = _key->GetPrivate();
auto pem = _key->GetPublic();
stream->Write(pem.data(), pem.size());
return true;
}