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

This commit is contained in:
Michał Janiszewski 2018-07-18 22:11:34 +01:00 committed by GitHub
parent 3d85ec4ea1
commit 10f6059f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

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)
------------------------------------------------------------------------

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;
}