mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
i must test these before calling them good - as gcc isn't on the windows
machine i push, test, fix, and then push again - pvs studio <3
This commit is contained in:
@@ -223,7 +223,7 @@ bool ConnectionServer::decryptToken(const KeyShare::Token & token, char* session
|
||||
uint32 len = apiSessionIdWidth + sizeof(StationId);
|
||||
unsigned char * keyBuffer = new unsigned char[len + 1];
|
||||
unsigned char * keyBufferPointer = keyBuffer;
|
||||
memset(keyBuffer, 0, len);
|
||||
memset(keyBuffer, 0, sizeof(*keyBuffer));
|
||||
|
||||
bool retval = cs.loginServerKeys->decipherToken(token, keyBuffer, len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user