From: wessels <> Date: Fri, 15 Nov 1996 01:16:32 +0000 (+0000) Subject: protect squid_error_entry calls with check that store_status == STORE_PENDING X-Git-Tag: SQUID_3_0_PRE1~5467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0182515f410f16c8192cf354ea3e6bc177a70640;p=thirdparty%2Fsquid.git protect squid_error_entry calls with check that store_status == STORE_PENDING --- diff --git a/src/ftp.cc b/src/ftp.cc index cc3350d021..fb4b31d227 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.79 1996/11/12 22:37:04 wessels Exp $ + * $Id: ftp.cc,v 1.80 1996/11/14 18:16:32 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -187,7 +187,8 @@ ftpLifetimeExpire(int fd, FtpStateData * data) StoreEntry *entry = NULL; entry = data->entry; debug(9, 4, "ftpLifeTimeExpire: FD %d: '%s'\n", fd, entry->url); - squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); + if (entry->store_status == STORE_PENDING) + squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); comm_close(fd); } diff --git a/src/gopher.cc b/src/gopher.cc index 1cbdd6e647..d8395d6202 100644 --- a/src/gopher.cc +++ b/src/gopher.cc @@ -1,5 +1,5 @@ /* - * $Id: gopher.cc,v 1.63 1996/11/06 23:14:36 wessels Exp $ + * $Id: gopher.cc,v 1.64 1996/11/14 18:16:32 wessels Exp $ * * DEBUG: section 10 Gopher * AUTHOR: Harvest Derived @@ -695,7 +695,8 @@ gopherLifetimeExpire(int fd, GopherStateData * data) StoreEntry *entry = NULL; entry = data->entry; debug(10, 4, "gopherLifeTimeExpire: FD %d: '%s'\n", fd, entry->url); - squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); + if (entry->store_status == STORE_PENDING) + squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); commSetSelect(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, NULL, diff --git a/src/http.cc b/src/http.cc index 39a3e69442..22565e410c 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,5 +1,5 @@ /* - * $Id: http.cc,v 1.103 1996/11/14 03:00:53 wessels Exp $ + * $Id: http.cc,v 1.104 1996/11/14 18:16:33 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -209,7 +209,8 @@ httpLifetimeExpire(int fd, void *data) HttpStateData *httpState = data; StoreEntry *entry = httpState->entry; debug(11, 4, "httpLifeTimeExpire: FD %d: '%s'\n", fd, entry->url); - squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); + if (entry->store_status == STORE_PENDING) + squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); commSetSelect(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, NULL, NULL, 0); comm_close(fd); } diff --git a/src/wais.cc b/src/wais.cc index 7f03557c2e..4b0db871a4 100644 --- a/src/wais.cc +++ b/src/wais.cc @@ -1,6 +1,6 @@ /* - * $Id: wais.cc,v 1.53 1996/11/06 23:15:07 wessels Exp $ + * $Id: wais.cc,v 1.54 1996/11/14 18:16:34 wessels Exp $ * * DEBUG: section 24 WAIS Relay * AUTHOR: Harvest Derived @@ -159,7 +159,8 @@ waisLifetimeExpire(int fd, WaisStateData * waisState) entry = waisState->entry; debug(24, 4, "waisLifeTimeExpire: FD %d: '%s'\n", fd, entry->url); - squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); + if (entry->store_status == STORE_PENDING) + squid_error_entry(entry, ERR_LIFETIME_EXP, NULL); commSetSelect(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, NULL, NULL, 0); comm_close(fd); }