summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 2bcb22738..3d43234d3 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -10210,6 +10210,8 @@ bool atcommand_exec(const int fd, struct map_session_data *sd, const char *messa
return true;
}
+ // reassign to info is need to avoid use after free [4144]
+ info = atcommand->get_info_byname(atcommand->check_alias(command + 1));
if (info->log) /* log only if this command should be logged [Ind/Hercules] */
logs->atcommand(sd, is_atcommand ? atcmd_msg : message);