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

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