summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-agent_registry.c
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2008-08-24 15:14:03 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2008-08-24 15:14:03 +0000
commitfeef390d6bab19937d82be702729d1323971935a (patch)
tree9ea8bafa1ec06da32815a6e7cde887a2f92c1547 /net-mgmt/net-snmp/files/patch-agent_registry.c
parent- Fix pkg-plist when NOPORTDOCS is defined (diff)
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]
Diffstat (limited to 'net-mgmt/net-snmp/files/patch-agent_registry.c')
-rw-r--r--net-mgmt/net-snmp/files/patch-agent_registry.c12
1 files changed, 12 insertions, 0 deletions
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;
+ }
+