]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 26 Oct 2018 12:50:17 +0000 (01:50 +1300)
src/icmp/net_db.cc

index 15acb85b9b5f5d884b036c051d55427d5d04a61b..0f488de2b2c8b0752ba80fdea279db478eef607a 100644 (file)
@@ -502,7 +502,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;