components/net-snmp/patches/046.18721173.patch
author Tomas Klacko <tomas.klacko@oracle.com>
Mon, 16 Mar 2015 02:51:38 -0700
branchs11-update
changeset 3948 568dd7b9cf04
parent 3265 bd7839afa948
permissions -rw-r--r--
20393612 silence debug info "Reallocating sreaddir buffer from 14 entries to 28 entries"

CVE-2014-2310
http://sourceforge.net/p/net-snmp/code/ci/eb816330a1887798d844d2fd5dc6482002123cbd

--- a/agent/mibgroup/agentx/protocol.c
+++ b/agent/mibgroup/agentx/protocol.c
@@ -1771,11 +1771,11 @@ agentx_parse(netsnmp_session * session, netsnmp_pdu *pdu, u_char * data,
                                       (u_char *) end_oid_buf,
                                       end_oid_buf_len);
             }
+            oid_buf_len = MAX_OID_LEN;
+            end_oid_buf_len = MAX_OID_LEN;
         }
 
         DEBUGINDENTLESS();
-        oid_buf_len = MAX_OID_LEN;
-        end_oid_buf_len = MAX_OID_LEN;
         break;