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:
parent
f6a9b69bd2
commit
23a13eb1fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user