mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
Fix security bug in 's getSkillname
This commit is contained in:
parent
5a5e8f80b1
commit
ac4a3682ae
@ -285,7 +285,8 @@ static char *getSkillname(const char *file, int skillid)
|
||||
|
||||
if (!file_exists(file)) {
|
||||
skilltree = getXmlFromAPI(NULL, NULL, NULL, EVEURL_SKILLTREE);
|
||||
writeSkilltree(skilltree, file);
|
||||
//2x file_exits() so that someone (malicious?) couldn't create it during during the previous call
|
||||
if (!file_exists(file)) writeSkilltree(skilltree, file);
|
||||
free(skilltree);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user