mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Fix #6851: Passing password as argument does not work
* Using password from command line arguments to connect to server * Replaced tabs with spaces * Added myself to contributors
This commit is contained in:
committed by
Michał Janiszewski
parent
4678829e03
commit
3c2aaefc85
@@ -1672,7 +1672,12 @@ void Network::Client_Handle_TOKEN(NetworkConnection& connection, NetworkPacket&
|
||||
// Don't keep private key in memory. There's no need and it may get leaked
|
||||
// when process dump gets collected at some point in future.
|
||||
_key.Unload();
|
||||
Client_Send_AUTH(gConfigNetwork.player_name, "", pubkey.c_str(), signature, sigsize);
|
||||
|
||||
const char* password = String::IsNullOrEmpty(gCustomPassword) ?
|
||||
"" :
|
||||
gCustomPassword;
|
||||
Client_Send_AUTH(gConfigNetwork.player_name, password, pubkey.c_str(), signature, sigsize);
|
||||
|
||||
delete [] signature;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user