From feef390d6bab19937d82be702729d1323971935a Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sun, 24 Aug 2008 15:14:03 +0000 Subject: o squelch registration warnings on startup [1]. o Treat inactive memory as cache like same behavior as before [2]. Submitted by: bms [1], mwlucas [2] PR: ports/126694 [2] --- net-mgmt/net-snmp/files/patch-agent_registry.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net-mgmt/net-snmp/files/patch-agent_registry.c (limited to 'net-mgmt/net-snmp/files/patch-agent_registry.c') diff --git a/net-mgmt/net-snmp/files/patch-agent_registry.c b/net-mgmt/net-snmp/files/patch-agent_registry.c new file mode 100644 index 000000000000..8c81bdf5ab52 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_registry.c @@ -0,0 +1,12 @@ +--- agent/agent_registry.c.orig 2008-08-24 23:24:04.944441100 +0900 ++++ agent/agent_registry.c 2008-08-24 23:25:37.996227686 +0900 +@@ -532,7 +532,8 @@ + + if (next && (next->namelen == new_sub->namelen) && + (next->priority == new_sub->priority)) { +- netsnmp_assert(!"registration != duplicate"); /* always false */ ++ if (new_sub->namelen != 1) /* ignore root OID dups */ ++ netsnmp_assert(!"registration != duplicate"); /* always false */ + return MIB_DUPLICATE_REGISTRATION; + } + -- cgit v1.2.3