From d148d5fbc00179605afcf195cedc3f6bbd1c7589 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 9 Dec 2005 08:02:24 +0000 Subject: [PATCH] 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. --- src/snmp_core.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.47.3