From 2e2b57fb91c7cf69791c97e43be22acf382638e5 Mon Sep 17 00:00:00 2001 From: malloc Date: Wed, 16 May 2018 09:15:39 -0500 Subject: [PATCH] lithemias boob --- protocol.md | 10 +++++----- server/src/hosts/master_intra.cpp | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/protocol.md b/protocol.md index ee4ac60..7239f91 100644 --- a/protocol.md +++ b/protocol.md @@ -477,16 +477,16 @@ TODO: MAKE THIS SECTION NOT LOOK LIKE SHIT ### Master / Slave #### M -> S (ID 2) -0x01: KEY SIZE WAS INCORRECT +100: KEY SIZE WAS INCORRECT -0x02: COULD NOT PARSE KEY +101: COULD NOT PARSE KEY #### M -> S (ID 4) -0x01: MAX AUTH ATTEMPTS REACHED +100: MAX AUTH ATTEMPTS REACHED -0x02: LICENSE DATA INCORRECT +101: LICENSE DATA INCORRECT -0x03: LICENSE LIMIT REACHED +102: LICENSE LIMIT REACHED ### Master / Client diff --git a/server/src/hosts/master_intra.cpp b/server/src/hosts/master_intra.cpp index ddfa351..bc31f3b 100644 --- a/server/src/hosts/master_intra.cpp +++ b/server/src/hosts/master_intra.cpp @@ -138,6 +138,11 @@ bool sosc::MasterIntra::Authentication(sosc::Packet &pck) { } } + query = this->queries->at(QRY_SERVER_LIST_ADD); + query->Reset(); + query->BindText(pck[0], pck[1], ); + query->NonQuery(); + _ctx.license_check_mtx.unlock(); this->authed = true;