components/net-snmp/patches/013.6852099.proxy.patch
changeset 1306 11b376b53ac1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/013.6852099.proxy.patch	Sat May 18 09:18:20 2013 -0700
@@ -0,0 +1,29 @@
+--- a/agent/mibgroup/ucd-snmp/proxy.c	2006-10-17 18:16:29.000000000 +0200
++++ b/agent/mibgroup/ucd-snmp/proxy.c	2012-03-27 09:02:10.488425400 +0200
+@@ -396,6 +396,8 @@
+ 
+     if (!pdu || !sp) {
+         netsnmp_set_request_error(reqinfo, requests, SNMP_ERR_GENERR);
++        if (pdu)
++            snmp_free_pdu(pdu);
+         return SNMP_ERR_NOERROR;
+     }
+ 
+@@ -408,6 +410,8 @@
+                 /*
+                  * too large 
+                  */
++                if (pdu)
++                    snmp_free_pdu(pdu);
+                 snmp_log(LOG_ERR,
+                          "proxy oid request length is too long\n");
+                 return SNMP_ERR_NOERROR;
+@@ -437,6 +441,8 @@
+      */
+     if (!proxy_fill_in_session(handler, reqinfo, (void **)&configured)) {
+         netsnmp_set_request_error(reqinfo, requests, SNMP_ERR_GENERR);
++        if (pdu)
++            snmp_free_pdu(pdu);
+         return SNMP_ERR_NOERROR;
+     }
+