/*
- * $Id: client_side.cc,v 1.207 1998/02/12 07:03:04 wessels Exp $
+ * $Id: client_side.cc,v 1.208 1998/02/17 18:15:22 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
memFree(MEM_4K_BUF, buf);
buf = NULL;
if (size < 0 || entry->store_status == STORE_ABORTED) {
- debug(33, 1) ("clientGetHeadersForIMS: storeClientCopy failed for '%s'\n",
- storeKeyText(entry->key));
- clientProcessMiss(http);
+ /*
+ * There are different reasons why we might have size < 0. One
+ * being that we failed to open a swapfile. Another being that
+ * the request was cancelled from the client-side. If the client
+ * cancelled the request, then http->entry will be NULL.
+ */
+ if (entry != NULL) {
+ debug(33, 1) ("clientGetHeadersForIMS: storeClientCopy failed for '%s'\n",
+ storeKeyText(entry->key));
+ clientProcessMiss(http);
+ }
return;
}
if (mem->reply->code == 0) {