diff options
Diffstat (limited to '')
-rw-r--r-- | bouncer/client.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bouncer/client.cpp b/bouncer/client.cpp index 79e97a2..ab133b6 100644 --- a/bouncer/client.cpp +++ b/bouncer/client.cpp @@ -150,10 +150,14 @@ void Client::handlePacket(Packet::Type type, char *data, int size) { uint32_t lastReceivedByClient = pkt.readU32(); + char pwBuf[512] = ""; + pkt.readStr(pwBuf, sizeof(pwBuf)); + if (strcmp(pwBuf, netCore->bouncerPassword.c_str()) != 0) + error = 3; + if (!pkt.readRemains(SESSION_KEY_SIZE)) error = 2; - // Authentication goes here at some point, too if (error != 0) { |