From: wessels <> Date: Sun, 10 May 1998 07:46:53 +0000 (+0000) Subject: reset mem->fd == -1 if we unregister that client X-Git-Tag: SQUID_3_0_PRE1~3349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c454c5cc0053bf68e7afd517ba983a395691846;p=thirdparty%2Fsquid.git reset mem->fd == -1 if we unregister that client --- diff --git a/src/store_client.cc b/src/store_client.cc index f797074b28..40835bf913 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -360,6 +360,13 @@ storeUnregister(StoreEntry * e, void *data) } if (sc == NULL) return 0; + if (sc == mem->clients) { + /* + * If we are unregistering the _first_ client for this + * entry, then we have to reset the client FD to -1. + */ + mem->fd = -1; + } *S = sc->next; mem->nclients--; sc->flags.disk_io_pending = 0;