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