Fix BigNumber::AsByteArray function by returning Auto_Ptr.
Remove mutex from BigNumber class - it didn't do what it was advertised to do - consider using the "locked" array outside of the function in which it was "locked".
This commit is contained in:
1 parent
8160633e12
commit
2a3370929d
9 files changed
+38
-47
No files matched your search
@@ -730,11 +730,11 @@ int WorldSocket::HandleSendAuthSession()
|
||||
|
||||
BigNumber seed1;
|
||||
seed1.SetRand(16 * 8);
|
||||
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
|
||||
packet.append(seed1.AsByteArray(16).get(), 16); // new encryption seeds
|
||||
|
||||
BigNumber seed2;
|
||||
seed2.SetRand(16 * 8);
|
||||
packet.append(seed2.AsByteArray(16), 16); // new encryption seeds
|
||||
packet.append(seed2.AsByteArray(16).get(), 16); // new encryption seeds
|
||||
return SendPacket(packet);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user