Hi All ,

        I am getting some m/m leak in send_v2trap .. i added one patch to avoid 
this 
--- net-snmp-5.4/agent/agent_trap.c     2006-09-19 20:15:26.000000000 +0530
+++ net-snmp-5.4_new/agent/agent_trap.c 2009-03-04 15:03:14.000000000 +0530
@@ -897,6 +897,7 @@ send_trap_to_sess(netsnmp_session * sess
         snmp_increment_statistic(STAT_SNMPOUTTRAPS);
         snmp_increment_statistic(STAT_SNMPOUTPKTS);
     }
+        snmp_free_pdu(pdu);
 }
 void

after adding this patch my snmpd is crashing while starting ..

snmpd: send_trap: Unknown PDU type
NET-SNMP version 5.4
[1] + Aborted                    /usr/local/sbin/snmpd -f -L -c /etc/snmpd.conf

can anybody help me on this ..

Thanks 
Amit


      
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to