projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91afbd2
)
Was leaking on cf_file_input() when don't have write permission
author
Jorge Pereira
<jpereiran@gmail.com>
Thu, 25 Jun 2015 20:49:31 +0000
(17:49 -0300)
committer
Jorge Pereira
<jpereiran@gmail.com>
Thu, 25 Jun 2015 20:49:31 +0000
(17:49 -0300)
src/main/conffile.c
patch
|
blob
|
history
diff --git
a/src/main/conffile.c
b/src/main/conffile.c
index
83394f2
..
97da783
100644
(file)
--- a/
src/main/conffile.c
+++ b/
src/main/conffile.c
@@
-387,6
+387,7
@@
static bool cf_file_input(CONF_SECTION *cs, char const *filename)
if ((file->buf.st_mode & S_IWOTH) != 0) {
ERROR("Configuration file %s is globally writable. "
"Refusing to start due to insecure configuration.", filename);
+ talloc_free(file);
return false;
}
#endif