From: Eduard Bagdasaryan Date: Mon, 9 Oct 2023 23:57:11 +0000 (+0000) Subject: Fix handling of zero cache_peers with --enable-cache-digests (#1502) X-Git-Tag: SQUID_7_0_1~334 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70eaaee31cd5b3be08c94389df9f2ec2839cd06f;p=thirdparty%2Fsquid.git Fix handling of zero cache_peers with --enable-cache-digests (#1502) The bug was introduced in recent commit 2e24d0b. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 4b2a8bda3a..54835f9128 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -760,6 +760,9 @@ neighborsDigestSelect(PeerSelector *ps) int ichoice_count = 0; int p_rtt; + if (!Config.peers) + return nullptr; + if (!request->flags.hierarchical) return nullptr;