Blame SOURCES/dhcp-close_file_in_noreplay.patch
|
|
9295a4 |
diff --git a/server/confpars.c b/server/confpars.c
|
|
|
9295a4 |
index a9b4b57..761b102 100644
|
|
|
9295a4 |
--- a/server/confpars.c
|
|
|
9295a4 |
+++ b/server/confpars.c
|
|
|
9295a4 |
@@ -168,7 +168,6 @@ isc_result_t read_conf_file (const char *filename, struct group *group,
|
|
|
9295a4 |
if (result != ulen)
|
|
|
9295a4 |
log_fatal ("%s: short read of %d bytes instead of %d.",
|
|
|
9295a4 |
filename, ulen, result);
|
|
|
9295a4 |
- close (file);
|
|
|
9295a4 |
memfile:
|
|
|
9295a4 |
/* If we're recording, write out the filename and file contents. */
|
|
|
9295a4 |
if (trace_record ())
|
|
|
9295a4 |
@@ -179,6 +178,7 @@ isc_result_t read_conf_file (const char *filename, struct group *group,
|
|
|
9295a4 |
status = new_parse(&cfile, file, NULL, 0, filename, 0);
|
|
|
9295a4 |
#endif
|
|
|
9295a4 |
noreplay:
|
|
|
9295a4 |
+ close (file);
|
|
|
9295a4 |
if (status != ISC_R_SUCCESS || cfile == NULL)
|
|
|
9295a4 |
return status;
|
|
|
9295a4 |
|