1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-28 13:00:45 +00:00

Fix security bug in 's getSkillname

This commit is contained in:
Nikolas Garofil 2011-02-10 16:20:06 +01:00
parent 5a5e8f80b1
commit ac4a3682ae

View File

@ -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);
}