]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix assertions
authorwessels <>
Fri, 20 Jun 1997 11:26:08 +0000 (11:26 +0000)
committerwessels <>
Fri, 20 Jun 1997 11:26:08 +0000 (11:26 +0000)
src/comm.cc
src/ftp.cc

index 61b335503864a6dae151f74474a212e3c00e613c..ed5f9c97bd12c769e8e750ac0a223ec53fa34f90 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.169 1997/06/20 05:08:30 wessels Exp $
+ * $Id: comm.cc,v 1.170 1997/06/20 05:26:08 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -584,7 +584,7 @@ comm_close(int fd)
     fde = &fd_table[fd];
     if (!fde->open)
        return;
-    assert(fd_table[fd].type =! FD_FILE);
+    assert(fde->type != FD_FILE);
     fde->open = 0;
     CommWriteStateCallbackAndFree(fd, COMM_ERROR);
     commCallCloseHandlers(fd);
index 329791b09c3ed410258f0ddad1685d3b0d727c98..85e2dc3a7b3c39c9dcaa269047be9930fa76ee8f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.127 1997/06/20 02:22:11 wessels Exp $
+ * $Id: ftp.cc,v 1.128 1997/06/20 05:26:09 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -225,7 +225,8 @@ ftpTimeout(int fd, void *data)
 {
     FtpStateData *ftpState = data;
     StoreEntry *entry = ftpState->entry;
-    debug(9, 4) ("ftpLifeTimeExpire: FD %d: '%s'\n", fd, entry->url);
+    assert(cbdataValid(ftpState));
+    debug(9, 4) ("ftpTimeout: FD %d: '%s'\n", fd, entry->url);
     storeAbort(entry, ERR_READ_TIMEOUT, NULL, 0);
     if (ftpState->data.fd >= 0)
        comm_close(ftpState->data.fd);