From bd703253b745aaec6e45a60108bec513bf79bd2c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Sat, 13 Jan 2001 00:23:34 +0000 Subject: [PATCH] oops, a mutex was locked too early. --- lib/dns/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/cache.c b/lib/dns/cache.c index 8d09a0b71f..09b141154a 100644 --- a/lib/dns/cache.c +++ b/lib/dns/cache.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: cache.c,v 1.33 2001/01/12 22:22:15 bwelling Exp $ */ +/* $Id: cache.c,v 1.34 2001/01/13 00:23:34 bwelling Exp $ */ #include @@ -328,9 +328,9 @@ dns_cache_dump(dns_cache_t *cache) { REQUIRE(VALID_CACHE(cache)); - LOCK(&cache->filelock); if (cache->filename == NULL) return (ISC_R_SUCCESS); + LOCK(&cache->filelock); result = dns_master_dump(cache->mctx, cache->db, NULL, &dns_master_style_cache, cache->filename); UNLOCK(&cache->filelock);