]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
netdb not saving to disk (#311)
authorchi-mf <43963496+chi-mf@users.noreply.github.com>
Wed, 24 Oct 2018 12:12:09 +0000 (12:12 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 24 Oct 2018 12:13:42 +0000 (12:13 +0000)
src/icmp/net_db.cc

index 197e7080e825c33dfb091fa0ab415a36f9b4b6bf..afffab45f33cd54da2f532f61d1466064c808b74 100644 (file)
@@ -492,7 +492,7 @@ netdbSaveState(void *foo)
     unlink(Config.netdbFilename);
     lf = logfileOpen(Config.netdbFilename, 4096, 0);
 
-    if (lf) {
+    if (!lf) {
         int xerrno = errno;
         debugs(50, DBG_IMPORTANT, MYNAME << Config.netdbFilename << ": " << xstrerr(xerrno));
         return;