diff options
author | shennetsind <ind@henn.et> | 2014-01-12 15:10:55 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-01-12 15:10:55 -0200 |
commit | 8aeb011694ca3023d93dd6e904b3f42ab93f8ba9 (patch) | |
tree | 5fbf3ff907495e0f20c2da650edf37d9f18ce125 /src/map/chrif.c | |
parent | ca6454b94bd9e2bcf5ddd9c51bea23d5c2bf6d78 (diff) | |
download | hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.gz hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.bz2 hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.xz hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.zip |
Two Adjustments
From some notes I took while working on the megapatch:
- Dropped unused char_dat variable in chrif's auth_node
- Fixed DB/BB/PB Logging, which could create false logs due to where it was placed.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index d66ec1d85..aaef0d6ef 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -126,9 +126,6 @@ bool chrif_auth_delete(int account_id, int char_id, enum sd_state state) { if ( session[fd] && session[fd]->session_data == node->sd ) session[fd]->session_data = NULL; - if ( node->char_dat ) - aFree(node->char_dat); - if ( node->sd ) aFree(node->sd); @@ -452,7 +449,7 @@ int chrif_reconnect(DBKey key, DBData *data, va_list ap) { switch (node->state) { case ST_LOGIN: - if ( node->sd && node->char_dat == NULL ) {//Since there is no way to request the char auth, make it fail. + if ( node->sd ) {//Since there is no way to request the char auth, make it fail. pc->authfail(node->sd); chrif->char_offline(node->sd); chrif->auth_delete(node->account_id, node->char_id, ST_LOGIN); @@ -618,7 +615,6 @@ void chrif_authok(int fd) { sd = node->sd; if( runflag == MAPSERVER_ST_RUNNING && - node->char_dat == NULL && node->account_id == account_id && node->char_id == char_id && node->login_id1 == login_id1 ) @@ -1597,9 +1593,6 @@ void chrif_send_report(char* buf, int len) { int auth_db_final(DBKey key, DBData *data, va_list ap) { struct auth_node *node = DB->data2ptr(data); - if (node->char_dat) - aFree(node->char_dat); - if (node->sd) aFree(node->sd); |