Prohibit sending a packet when blowfish is not initialized.
This commit is contained in:
@ -623,6 +623,11 @@ public class LoginServerThread extends Thread
|
||||
*/
|
||||
private void sendPacket(BaseSendablePacket sl) throws IOException
|
||||
{
|
||||
if (_blowfish == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final byte[] data = sl.getContent();
|
||||
NewCrypt.appendChecksum(data);
|
||||
_blowfish.crypt(data, 0, data.length);
|
||||
|
Reference in New Issue
Block a user