Blame SOURCES/net-snmp-5.7.2-proxy-getnext.patch

b5ae06
1087801 - proxied OIDs unspecified in proxy statement in snmpd.conf
b5ae06
b5ae06
From RHEL 6 patch.
b5ae06
b5ae06
diff -up net-snmp-5.7.2/agent/mibgroup/ucd-snmp/proxy.c.test2 net-snmp-5.7.2/agent/mibgroup/ucd-snmp/proxy.c
b5ae06
--- net-snmp-5.7.2/agent/mibgroup/ucd-snmp/proxy.c.test2	2014-04-14 14:24:00.146782548 +0200
b5ae06
+++ net-snmp-5.7.2/agent/mibgroup/ucd-snmp/proxy.c	2014-04-14 14:24:20.416760913 +0200
b5ae06
@@ -412,7 +412,7 @@ proxy_handler(netsnmp_mib_handler *handl
b5ae06
         if (sp->base_len &&
b5ae06
             reqinfo->mode == MODE_GETNEXT &&
b5ae06
             (snmp_oid_compare(ourname, ourlength,
b5ae06
-                              sp->base, sp->base_len) < 0)) {
b5ae06
+                              sp->name, sp->name_len) < 0)) {
b5ae06
             DEBUGMSGTL(( "proxy", "request is out of registered range\n"));
b5ae06
             /*
b5ae06
              * Create GETNEXT request with an OID so the