From owner-cvs-src-old@FreeBSD.ORG Fri Mar 19 09:53:48 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0774106568E for ; Fri, 19 Mar 2010 09:53:48 +0000 (UTC) (envelope-from syrinx@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9E6058FC1C for ; Fri, 19 Mar 2010 09:53:48 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o2J9rmtL087181 for ; Fri, 19 Mar 2010 09:53:48 GMT (envelope-from syrinx@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o2J9rmu2087180 for cvs-src-old@freebsd.org; Fri, 19 Mar 2010 09:53:48 GMT (envelope-from syrinx@repoman.freebsd.org) Message-Id: <201003190953.o2J9rmu2087180@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to syrinx@repoman.freebsd.org using -f From: Shteryana Shopova Date: Fri, 19 Mar 2010 09:53:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/bsnmpd/modules/snmp_pf pf_snmp.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 09:53:48 -0000 syrinx 2010-03-19 09:53:25 UTC FreeBSD src repository Modified files: usr.sbin/bsnmpd/modules/snmp_pf pf_snmp.c Log: SVN rev 205312 on 2010-03-19 09:53:25Z by syrinx Make sure the snmp_pf module will first refresh its entires if necessary, then find a specific entry, and get the requested value. So far, it found the specific entry, refreshed the entry list if necessary, and got the requested value from the found entry. The problem is that refreshing nukes all old entries and replaces them with new ones and the obtained entry pointer was no longer valid after the refresh. Reviewed by: bz, philip MFC after: 1 week Revision Changes Path 1.12 +12 -12 src/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c