From: wessels <> Date: Mon, 25 Aug 1997 08:25:45 +0000 (+0000) Subject: return 0 if there is no object data, instead of returning -1. This X-Git-Tag: SQUID_3_0_PRE1~4822 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11d6f6c084fc4ba0b801445b628596591fae38fe;p=thirdparty%2Fsquid.git return 0 if there is no object data, instead of returning -1. This could happen, for example, with objcache requests for unsupported features, such as netdb/icmp. --- diff --git a/src/stmem.cc b/src/stmem.cc index a39d03eeca..394a936a5b 100644 --- a/src/stmem.cc +++ b/src/stmem.cc @@ -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) {