diff --git a/CHANGES b/CHANGES index 1e7d0cb6d6..71f1660f1a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1829. [bug] win32: "pid-file none;" broken. [RT #13563] + 1828. [bug] isc_rwlock_init() failed to properly cleanup if it encountered a error. [RT #13549] diff --git a/bin/named/win32/os.c b/bin/named/win32/os.c index 6f8fa90716..503524ba58 100644 --- a/bin/named/win32/os.c +++ b/bin/named/win32/os.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.21 2004/09/29 06:45:38 marka Exp $ */ +/* $Id: os.c,v 1.22 2005/03/15 23:16:53 marka Exp $ */ #include #include @@ -208,7 +208,7 @@ ns_os_writepidfile(const char *filename, isc_boolean_t first_time) { cleanup_pidfile(); - if (strcmp(filename, "none") == 0) + if (filename == NULL) return; len = strlen(filename); pidfile = malloc(len + 1);