viewing paste Unknown #14689 | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/src/login/loginchrif.c b/src/login/loginchrif.c
index dc0e799..94b023e 100644
--- a/src/login/loginchrif.c
+++ b/src/login/loginchrif.c
@@ -91,6 +91,7 @@ int logchrif_parse_reqauth(int fd, int id,char* ip){
                RFIFOSKIP(fd,23);
 
                node = (struct auth_node*)idb_get(auth_db, account_id);
+               ShowInfo("Checking logchrif_parse_reqauth auth_db output, version=%d",node->version);
                if( runflag == LOGINSERVER_ST_RUNNING &&
                        node != NULL &&
                        node->account_id == account_id &&
diff --git a/src/login/loginclif.c b/src/login/loginclif.c
index a39cb7b..f92f0e1 100644
--- a/src/login/loginclif.c
+++ b/src/login/loginclif.c
@@ -147,8 +147,13 @@ static void logclif_auth_ok(struct login_session_data* sd) {
        node->ip = ip;
        node->version = sd->version;
        node->clienttype = sd->clienttype;
+       ShowInfo("Checking auth_db input, version=%d",node->version);
        idb_put(auth_db, sd->account_id, node);
        {
+               struct auth_node *node_tmp = (struct auth_node*)idb_get(auth_db, node->account_id);
+               ShowInfo("Checking auth_db output, version=%d",node_tmp->version);
+       }
+       {
                struct online_login_data* data;
                // mark client as 'online'
                data = login_add_online_user(-1, sd->account_id);
@@ -334,7 +339,7 @@ static int logclif_parse_reqauth(int fd, struct login_session_data *sd, int comm
                        }
                }
                RFIFOSKIP(fd,RFIFOREST(fd)); // assume no other packet was sent
-
+              
                sd->clienttype = clienttype;
                sd->version = version;
                safestrncpy(sd->userid, username, NAME_LENGTH);
 
Viewed 274 times, submitted by unknown.