From: wessels <> Date: Fri, 9 Dec 2005 08:02:24 +0000 (+0000) Subject: Compile-time bug introduced in recent changes related to X-Git-Tag: SQUID_3_0_PRE4~462 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d148d5fbc00179605afcf195cedc3f6bbd1c7589;p=thirdparty%2Fsquid.git Compile-time bug introduced in recent changes related to ACLCheckList::fastCheck(). The declaration for checklist was moved to an inner block, but it was still used outside. --- diff --git a/src/snmp_core.cc b/src/snmp_core.cc index c744ffd068..c1ea229153 100644 --- a/src/snmp_core.cc +++ b/src/snmp_core.cc @@ -1,6 +1,6 @@ /* - * $Id: snmp_core.cc,v 1.71 2005/12/08 20:08:47 wessels Exp $ + * $Id: snmp_core.cc,v 1.72 2005/12/09 01:02:24 wessels Exp $ * * DEBUG: section 49 SNMP support * AUTHOR: Glenn Chisholm @@ -536,12 +536,12 @@ snmpDecodePacket(snmp_request_t * rq) PDU = snmp_pdu_create(0); rq->session.Version = SNMP_VERSION_1; Community = snmp_parse(&rq->session, PDU, buf, len); - checklist.src_addr = rq->from.sin_addr; - checklist.snmp_community = (char *) Community; if (Community) { ACLChecklist checklist; checklist.accessList = cbdataReference(Config.accessList.snmp); + checklist.src_addr = rq->from.sin_addr; + checklist.snmp_community = (char *) Community; /* cbdataReferenceDone() happens in either fastCheck() or ~ACLCheckList */ allow = checklist.fastCheck(); }