Dangling pointer~

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6430 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-05-01 10:19:49 +00:00
parent f6a9b69bd2
commit 23a13eb1fc

View File

@ -511,7 +511,7 @@ void chrif_authok(int fd) {
return; return;
} }
// Awaiting for client to connect. // 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->char_dat = (struct mmo_charstatus *) aCalloc(1,sizeof(struct mmo_charstatus));
auth_data->account_id=RFIFOL(fd, 4); auth_data->account_id=RFIFOL(fd, 4);