summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 10:19:49 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 10:19:49 +0000
commita71ebb32f66b2ae36e4302bc8d90fb83fbc1eaa6 (patch)
tree486577d54a60091ee0f7b6a19a10847e305ad302 /src/map/chrif.c
parent39305280a983295f0a851851fa5cd93f16495ba6 (diff)
downloadhercules-a71ebb32f66b2ae36e4302bc8d90fb83fbc1eaa6.tar.gz
hercules-a71ebb32f66b2ae36e4302bc8d90fb83fbc1eaa6.tar.bz2
hercules-a71ebb32f66b2ae36e4302bc8d90fb83fbc1eaa6.tar.xz
hercules-a71ebb32f66b2ae36e4302bc8d90fb83fbc1eaa6.zip
Dangling pointer~
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6430 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index ca4cec935..9a3f8deee 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -511,7 +511,7 @@ void chrif_authok(int fd) {
return;
}
// Awaiting for client to connect.
- auth_data = (struct auth_node *)aMalloc(sizeof(struct auth_node));
+ auth_data = (struct auth_node *)aCalloc(1,sizeof(struct auth_node));
auth_data->char_dat = (struct mmo_charstatus *) aCalloc(1,sizeof(struct mmo_charstatus));
auth_data->account_id=RFIFOL(fd, 4);