]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Need to lock entry during whois fetch
authorwessels <>
Wed, 31 Dec 1997 06:07:11 +0000 (06:07 +0000)
committerwessels <>
Wed, 31 Dec 1997 06:07:11 +0000 (06:07 +0000)
src/asn.cc

index 862978ec638c2e33823acd30cae5c39143c8042c..3ed5df9665130eb424d5786eed4af240cdb8d300 100644 (file)
@@ -357,6 +357,7 @@ whoisStart(request_t * request, StoreEntry * entry)
     p->request = request;
     p->entry = entry;
     cbdataAdd(p);
+    storeLockObject(p->entry);
 
     fd = comm_open(SOCK_STREAM, 0, any_addr, 0, COMM_NONBLOCKING, "whois");
     if (fd == COMM_ERROR) {
@@ -407,9 +408,7 @@ static void
 whoisClose(int fd, void *data)
 {
     whoisState *p = data;
-    StoreEntry *entry = p->entry;
     debug(53, 6) ("whoisClose: FD %d\n", fd);
-    storeComplete(entry);
-    /* XXX free up whoisState */
+    storeUnlockObject(p->entry);
     cbdataFree(p);
 }