aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c')
-rw-r--r--net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c b/net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c
new file mode 100644
index 000000000000..7400bec01409
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-CVE-2007-5846-agent_read_config.c
@@ -0,0 +1,15 @@
+--- agent/agent_read_config.c.orig 2006-04-21 07:15:41.000000000 +0900
++++ agent/agent_read_config.c 2007-11-14 07:49:18.676387454 +0900
+@@ -255,6 +255,12 @@
+ netsnmp_ds_register_config(ASN_BOOLEAN, app, "leave_pidfile",
+ NETSNMP_DS_APPLICATION_ID,
+ NETSNMP_DS_AGENT_LEAVE_PIDFILE);
++ netsnmp_ds_register_config(ASN_INTEGER, app, "maxGetbulkRepeats",
++ NETSNMP_DS_APPLICATION_ID,
++ NETSNMP_DS_AGENT_MAX_GETBULKREPEATS);
++ netsnmp_ds_register_config(ASN_INTEGER, app, "maxGetbulkResponses",
++ NETSNMP_DS_APPLICATION_ID,
++ NETSNMP_DS_AGENT_MAX_GETBULKRESPONSES);
+ netsnmp_init_handler_conf();
+
+ #include "agent_module_dot_conf.h"