/*
- * $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
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();
}