]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 4 Oct 2000 04:57:30 +0000 (04:57 +0000)
committerwessels <>
Wed, 4 Oct 2000 04:57:30 +0000 (04:57 +0000)
 - Lock the entry *after* there is the possibility to return.

src/fqdncache.cc

index ab40df1a5d06bd6630353e0d0fccf9f45416bbf2..a5a11997531e508bbf1a29767598f82f9cadb766 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.136 2000/10/03 22:38:14 wessels Exp $
+ * $Id: fqdncache.cc,v 1.137 2000/10/03 22:57:30 wessels Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -187,9 +187,9 @@ fqdncacheCallback(fqdncache_entry * f)
     FQDNH *handler = f->handler;
     void *handlerData = f->handlerData;
     f->lastref = squid_curtime;
-    fqdncacheLockEntry(f);
     if (NULL == handler)
        return;
+    fqdncacheLockEntry(f);
     f->handler = NULL;
     f->handlerData = NULL;
     if (cbdataValid(handlerData)) {