summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2007-12-27 17:15:33 +0000
committerPeter Volkov <pva@gentoo.org>2007-12-27 17:15:33 +0000
commit401731012bb83c8d4080487717ce9aa44c2d9d0e (patch)
treeb2117c6b46c9426a01d3bbc0667603985e2f2168 /net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch
parentAdded dev-tcltk/Tk_Theme for removal. (diff)
downloadgentoo-2-401731012bb83c8d4080487717ce9aa44c2d9d0e.tar.gz
gentoo-2-401731012bb83c8d4080487717ce9aa44c2d9d0e.tar.bz2
gentoo-2-401731012bb83c8d4080487717ce9aa44c2d9d0e.zip
Fixes memory leaks reported in bug #180266, thank Doug <doug.manley AT gmail.com> for report and ivestigation. Added upstream patch to suppress annoying "registration != duplicate" warning for root oids.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch')
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch b/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch
new file mode 100644
index 000000000000..f08d8f712694
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch
@@ -0,0 +1,17 @@
+NEWS: agent: suppress annoying "registration != duplicate" warning for root oids
+(otherwise, you'll get this message on almost every startup)
+
+http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=16669
+
+--- branches/V5-4-patches/net-snmp/agent/agent_registry.c 2007/08/20 08:06:42 16668
++++ branches/V5-4-patches/net-snmp/agent/agent_registry.c 2007/08/22 21:56:23 16669
+@@ -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;
+ }
+