summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 01:55:17 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 01:55:17 +0000
commitc4703684d2c435e1360f3fe3318b979d90a5c0b4 (patch)
tree4fca5851c475ff2b3b78946c5767173cb45934c1 /src/map
parent76fc6e64c9c19af428e6f37020a1971fcea1304e (diff)
downloadhercules-c4703684d2c435e1360f3fe3318b979d90a5c0b4.tar.gz
hercules-c4703684d2c435e1360f3fe3318b979d90a5c0b4.tar.bz2
hercules-c4703684d2c435e1360f3fe3318b979d90a5c0b4.tar.xz
hercules-c4703684d2c435e1360f3fe3318b979d90a5c0b4.zip
* Fixed lack of initialization in chrif_authreq causing crashes in chrif_authok.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6420 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/chrif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 939208e8e..ca4cec935 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -465,13 +465,13 @@ void chrif_authreq(struct map_session_data *sd)
aFree(auth_data->char_dat);
idb_remove(auth_db, sd->bl.id);
} else { //data from char server has not arrived yet.
- auth_data = aMalloc(sizeof(struct auth_node));
+ auth_data = aCalloc(1,sizeof(struct auth_node));
auth_data->sd = sd;
auth_data->fd = sd->fd;
auth_data->account_id = sd->bl.id;
auth_data->login_id1 = sd->login_id1;
auth_data->node_created = gettick();
- idb_put(auth_db, sd->bl.id, auth_data);
+ uidb_put(auth_db, sd->bl.id, auth_data);
}
return;
}