]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
cleanup in constructor
authorwessels <>
Tue, 24 Jan 2006 12:58:42 +0000 (12:58 +0000)
committerwessels <>
Tue, 24 Jan 2006 12:58:42 +0000 (12:58 +0000)
src/ftp.cc

index 4e6533d9f71a028ddfd7fd3dbbc2e33e9d3b8e98..ec14c2c31442133411b5ec12628f62b7bdb4b7fd 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.377 2006/01/24 05:54:39 wessels Exp $
+ * $Id: ftp.cc,v 1.378 2006/01/24 05:58:42 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -370,14 +370,13 @@ FtpStateData::FtpStateData(FwdState *theFwdState)
 {
     request = theFwdState->request;
     entry = theFwdState->entry;
+    storeLockObject(entry);
     fwd = theFwdState;
     const char *url = storeUrl(entry);
 
     debug(9, 3) ("ftpStart: '%s'\n", url);
     statCounter.server.all.requests++;
     statCounter.server.ftp.requests++;
-    storeLockObject(entry);
-    entry = entry;
     request = requestLink(request);
     ctrl.fd = theFwdState->server_fd;
     data.fd = -1;