]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Wrong argument given to fclose
authorDanny Mayer <source@isc.org>
Thu, 8 Aug 2002 19:15:19 +0000 (19:15 +0000)
committerDanny Mayer <source@isc.org>
Thu, 8 Aug 2002 19:15:19 +0000 (19:15 +0000)
bin/named/win32/os.c

index 9e49d8168650868d6077781483e55a5850d2022d..57587aae14b954af1a9a02f5410852c9f9d57afd 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: os.c,v 1.5.2.2 2002/08/05 06:57:03 marka Exp $ */
+/* $Id: os.c,v 1.5.2.3 2002/08/08 19:15:19 mayer Exp $ */
 
 #include <config.h>
 #include <stdarg.h>
@@ -34,6 +34,7 @@
 #include <isc/print.h>
 #include <isc/result.h>
 #include <isc/string.h>
+//#include <isc/ntfile.h>
 #include <isc/ntpaths.h>
 
 #include <named/main.h>
@@ -205,13 +206,13 @@ ns_os_writepidfile(const char *filename, isc_boolean_t first_time) {
 
        if (fprintf(lockfile, "%ld\n", (long)pid) < 0) {
                (*report)("fprintf() to pid file '%s' failed", filename);
-               (void)fclose(fd);
+               (void)fclose(lockfile);
                cleanup_pidfile();
                return;
        }
        if (fflush(lockfile) == EOF) {
                (*report)("fflush() to pid file '%s' failed", filename);
-               (void)fclose(fd);
+               (void)fclose(lockfile);
                cleanup_pidfile();
                return;
        }