From: Alex Rousskov Date: Sat, 27 Jun 2020 04:13:43 +0000 (+0000) Subject: Generated config dumping code does not skip unconfigured options (#684) X-Git-Tag: SQUID_5_0_4~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a4cf6254a207e18e16311c6dfda726d3fa93e45;p=thirdparty%2Fsquid.git Generated config dumping code does not skip unconfigured options (#684) We must manually skip them. This fix is needed after commit 1c2b446. --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index ef154fd0a4..0b8f3484d8 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -5130,7 +5130,9 @@ parse_http_upgrade_request_protocols(HttpUpgradeProtocolAccess **protoGuardsPtr) static void dump_http_upgrade_request_protocols(StoreEntry *entry, const char *rawName, HttpUpgradeProtocolAccess *protoGuards) { - assert(protoGuards); + if (!protoGuards) + return; + const SBuf name(rawName); protoGuards->forEach([entry,&name](const SBuf &proto, const acl_access *acls) { SBufList line;