projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Close file on error condition
[freeradius.git]
/
src
/
main
/
conffile.c
diff --git
a/src/main/conffile.c
b/src/main/conffile.c
index
ee47afb
..
5157f14
100644
(file)
--- a/
src/main/conffile.c
+++ b/
src/main/conffile.c
@@
-1710,6
+1710,7
@@
int cf_file_include(const char *filename, CONF_SECTION *cs)
}
if (cf_data_find_internal(cs, filename, PW_TYPE_FILENAME)) {
+ fclose(fp);
radlog(L_ERR, "Cannot include the same file twice: \"%s\"",
filename);
return -1;