components/net-snmp/patches/013.6852099.proxy.patch
changeset 252 ee0fb1eabcbf
child 813 63a2c1675495
equal deleted inserted replaced
251:f527656d334f 252:ee0fb1eabcbf
       
     1 --- net-snmp-5.4.1/agent/mibgroup/ucd-snmp/proxy.c	Tue Oct 17 09:16:29 2006
       
     2 +++ patch/net-snmp-5.4.1/agent/mibgroup/ucd-snmp/proxy.c	Tue Sep 29 07:36:48 2009
       
     3 @@ -408,6 +408,8 @@
       
     4                  /*
       
     5                   * too large 
       
     6                   */
       
     7 +		if (pdu)
       
     8 +			snmp_free_pdu(pdu);
       
     9                  snmp_log(LOG_ERR,
       
    10                           "proxy oid request length is too long\n");
       
    11                  return SNMP_ERR_NOERROR;
       
    12 @@ -437,6 +439,8 @@
       
    13       */
       
    14      if (!proxy_fill_in_session(handler, reqinfo, (void **)&configured)) {
       
    15          netsnmp_set_request_error(reqinfo, requests, SNMP_ERR_GENERR);
       
    16 +	if (pdu)
       
    17 +		snmp_free_pdu(pdu);
       
    18          return SNMP_ERR_NOERROR;
       
    19      }
       
    20  
       
    21 @@ -451,6 +455,8 @@
       
    22  
       
    23      /* Free any special parameters generated on the session */
       
    24      proxy_free_filled_in_session_args(sp->sess, (void **)&configured);
       
    25 +    if (pdu)
       
    26 +	snmp_free_pdu(pdu);
       
    27  
       
    28      return SNMP_ERR_NOERROR;
       
    29  }