]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #1463
authorwessels <>
Tue, 10 Jan 2006 05:08:50 +0000 (05:08 +0000)
committerwessels <>
Tue, 10 Jan 2006 05:08:50 +0000 (05:08 +0000)
IdentLookup::checkForAsync() should only set asyncInProgress(true)
when actually doing the non-blocking ident lookup.

src/ACLIdent.cc

index 250aba51850434d19f434fe2f1820dd4bd63826b..e764e16ab318a0aec4f04a2154cad42efe2ffac8 100644 (file)
@@ -125,10 +125,9 @@ IdentLookup::Instance()
 void
 IdentLookup::checkForAsync(ACLChecklist *checklist)const
 {
-    checklist->asyncInProgress(true);
-    debug(28, 3) ("IdentLookup::checkForAsync: Doing ident lookup\n");
-
     if (checklist->conn().getRaw() != NULL) {
+        debug(28, 3) ("IdentLookup::checkForAsync: Doing ident lookup\n");
+        checklist->asyncInProgress(true);
         identStart(&checklist->conn()->me, &checklist->conn()->peer,
                    LookupDone, checklist);
     } else {