]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
return 0 if there is no object data, instead of returning -1. This
authorwessels <>
Mon, 25 Aug 1997 08:25:45 +0000 (08:25 +0000)
committerwessels <>
Mon, 25 Aug 1997 08:25:45 +0000 (08:25 +0000)
could happen, for example, with objcache requests for unsupported
features, such as netdb/icmp.

src/stmem.cc

index a39d03eecabe4d744158587c1606e1346e6e7617..394a936a5b5bc915c0b951fe49098f588919f0c8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stmem.cc,v 1.47 1997/07/15 23:23:33 wessels Exp $
+ * $Id: stmem.cc,v 1.48 1997/08/25 02:25:45 wessels Exp $
  *
  * DEBUG: section 19    Memory Primitives
  * AUTHOR: Harvest Derived
@@ -255,8 +255,7 @@ memCopy(const mem_hdr * mem, off_t offset, char *buf, size_t size)
     int bytes_into_this_packet = 0;
     debug(19, 6) ("memCopy: offset %d: size %d\n", offset, size);
     if (p == NULL)
-       return -1;
-    /*      fatal_dump("memCopy: NULL mem_node"); *//* Can happen on async */
+       return 0;
     assert(size > 0);
     /* Seek our way into store */
     while ((t_off + p->len) < offset) {