1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

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
2 changed files with 2 additions and 1 deletions

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