mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 19:58:24 +00:00
Fix seq in on login handshake
This commit is contained in:
@@ -71,6 +71,9 @@ bool Client::Process()
|
|||||||
SendPlayToWorld((const char *) app->pBuffer);
|
SendPlayToWorld((const char *) app->pBuffer);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case OP_SystemFingerprint: {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete app;
|
delete app;
|
||||||
@@ -87,16 +90,19 @@ void Client::HandleSessionReady(const char *data, unsigned int size)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size < sizeof(unsigned int)) {
|
if (size < sizeof(int32)) {
|
||||||
LogError("Session ready was too small");
|
LogError("Session ready was too small");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//existing sequence id
|
||||||
|
int32 sequence_in = *(int32*)data;
|
||||||
|
|
||||||
m_client_status = cs_waiting_for_login;
|
m_client_status = cs_waiting_for_login;
|
||||||
|
|
||||||
auto *outapp = new EQApplicationPacket(OP_ChatMessage, sizeof(LoginHandShakeReply));
|
auto *outapp = new EQApplicationPacket(OP_ChatMessage, sizeof(LoginHandShakeReply));
|
||||||
auto buf = reinterpret_cast<LoginHandShakeReply *>(outapp->pBuffer);
|
auto buf = reinterpret_cast<LoginHandShakeReply *>(outapp->pBuffer);
|
||||||
buf->base_header.sequence = 0x02;
|
buf->base_header.sequence = sequence_in;
|
||||||
buf->base_reply.success = true;
|
buf->base_reply.success = true;
|
||||||
buf->base_reply.error_str_id = 0x65; // 101 "No Error"
|
buf->base_reply.error_str_id = 0x65; // 101 "No Error"
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,12 @@ struct PlayEverquestResponse {
|
|||||||
uint32 server_number;
|
uint32 server_number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//for reference
|
||||||
|
struct SystemFingerprint {
|
||||||
|
LoginBaseMessage base_header;
|
||||||
|
char fingerprint[1];
|
||||||
|
};
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
enum LSClientVersion {
|
enum LSClientVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user