Hi List,

 I just finished implementing a MIB by extending the agent using the table 
iterator handlers. GET, SET, GETNEXT work great, no memory leaks, etc. The 
problem is that SNMP requests with multiple variable bindings causes the 
table iterator to crash.

 More specifically, the netsnmp_table_iterator_helper_handler() function in 
table_iterator.c attempts to free the same chunk of memory twice during the 
innermost loop (the for(request = requests) ...) when the SNMP request 
carries more than one variable binding. This is down in the MODE_GETNEXT 
case of the switch().

 Is this a known issue? Is there a workaround? I checked the bug database 
and there did not seem to be any entries concerning table iterators and 
GETBULK requests. I also didn't find anything in the coder's mailing list 
archive.

 This is on NET-Snmp 5.1.1. I also tried code on 5.2.1.2 and it also failed 
in the exact same manner, all on Windows XP Professional. 

 Thanks in advance.
 -justin.



--
SynCom Network, Inc. (http://www.syncom.com.tw)
Tel: +886-3-553-0522
Fax: +886-3-553-0523



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to